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

16 lines
342 B
SYSTEMD
Raw Permalink Normal View History

2020-07-05 01:19:50 +00:00
[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