Add support for OpenRC runscripts (#2935)

This commit is contained in:
Jakub Jirutka
2016-05-06 22:39:42 +02:00
committed by Arfon Smith
parent 176a0e9926
commit 5466fcfd2f
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/sbin/openrc-run
description="Daemon for Advanced Configuration and Power Interface"
extra_started_commands="reload"
command="/usr/sbin/acpid"
command_args="$ACPID_ARGS"
start_stop_daemon_args="--quiet"
depend() {
need localmount
use logger
}
reload() {
ebegin "Reloading acpid configuration"
start-stop-daemon --exec $command --signal HUP
eend $?
}