aports/main/acpid/acpid.initd
Clayton Craft f122f860f8 main/acpid: move acpid to /sbin to overwrite busybox link
Without this, there are two versions of `acpid` installed... one from
this package and a symlink to busybox.
2025-07-04 15:35:33 +02:00

29 lines
550 B
Bash

#!/sbin/openrc-run
description="The ACPI Daemon"
extra_started_commands="reload"
description_reload="Reload configuration"
command="/sbin/acpid"
command_args="--foreground ${command_args:-}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need dev localmount
after hwdrivers modules
provide acpid
keyword -vserver -lxc
}
reload() {
ebegin "Reloading $RC_SVCNAME configuration"
if [ "$supervisor" ]; then
$supervisor "$RC_SVCNAME" --signal HUP
else
start-stop-daemon --pidfile "$pidfile" --signal HUP
fi
eend $?
}