#!/sbin/openrc-run # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 extra_started_commands="reload" command="/bin/busybox acpid" command_args="${ACPID_ARGS}" acpi_dir="/etc/acpi" description="Daemon for Advanced Configuration and Power Interface" depend() { need localmount use logger } start() { ebegin "Starting busybox-acpid" mkdir -p $acpi_dir || return 1 start-stop-daemon --exec $command eend $? "Failed to start busybox-acpid" } reload() { ebegin "Reloading acpid configuration" start-stop-daemon --exec $command --signal HUP eend $? }