# Hotplug daemon — handles USB/SCSI/PCI hotplug events for userland. # Replaces /lib/svc/manifest/system/hotplug.xml. [service] name = "hotplug" description = "Hotplug daemon" type = "daemon" [exec] start = "/etc/zyginit/services/hotplug/start.sh" [dependencies] requires = ["filesystem"] [restart] on = "failure" delay = 5 max_retries = 3 [contract] param = ["inherit", "noorphan"] fatal = ["hwerr"] #!/bin/sh # Stale door file from a previous run prevents hotplugd from starting. /bin/rm -f /var/run/hotplugd_door exec /usr/lib/hotplugd