You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
681 B

#!/sbin/openrc-run
# Copyright 2022-2023 Calculate Linux Desktop Gnome by nemofsan
# Distributed under the terms of the GNU General Public License v2
name="power-profiles-daemon"
description="Access to power profile processing via D-bus"
pidfile="/run/power-profiles-daemon.pid"
command="/usr/libexec/power-profiles-daemon"
command_args="${PPDARGS}"
supervisor="supervise-daemon"
command_args_foreground=""
command_background=true
depend() {
use clock logger
need dbus
}
start_pre() {
checkpath -d /var/lib/power-profiles-daemon
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}"
eend $?
}