| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | description="The ACPI Daemon" |
| 4 | |
| 5 | extra_started_commands="reload" |
| 6 | description_reload="Reload configuration" |
| 7 | |
| 8 | command="/sbin/acpid" |
| 9 | command_args="--foreground ${command_args:-}" |
| 10 | command_background="yes" |
| 11 | pidfile="/run/$RC_SVCNAME.pid" |
| 12 | |
| 13 | depend() { |
| 14 | need dev localmount |
| 15 | after hwdrivers modules |
| 16 | provide acpid |
| 17 | keyword -vserver -lxc |
| 18 | } |
| 19 | |
| 20 | reload() { |
| 21 | ebegin "Reloading $RC_SVCNAME configuration" |
| 22 | if [ "$supervisor" ]; then |
| 23 | $supervisor "$RC_SVCNAME" --signal HUP |
| 24 | else |
| 25 | start-stop-daemon --pidfile "$pidfile" --signal HUP |
| 26 | fi |
| 27 | eend $? |
| 28 | } |