libvirt-usb-hotplug/libvirt-usb-hotplug@.service

16 lines
342 B
SYSTEMD

[Unit]
Description=Libvirt guest usb hotplug: %I
After=libvirtd.service
BindsTo=dev-libvirt_%i.device
After=dev-libvirt_%i.device
Requisite=dev-libvirt_%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/libvirt-usb-hotplug add %I
ExecStop=/usr/bin/libvirt-usb-hotplug remove %I
[Install]
WantedBy=dev-libvirt_%i.device