|
root / base / usr / src / zyginit / services / hotplug
hotplug Plain Text 22 lines 541 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# 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