summaryrefslogtreecommitdiff
path: root/nonsystemd/acpid-openrc/acpid.initd
blob: 98e36a2ffa1db472279d67020623fd04c999f389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

extra_started_commands="reload"
command="/usr/bin/acpid"
command_args="${ACPID_ARGS}"
description="Daemon for Advanced Configuration and Power Interface"
supervisor="supervise-daemon"
command_args_foreground="--foreground"
#pidfile="/run/acpid.pid"

depend() {
	need localmount
	use logger
}

reload() {
	ebegin "Reloading acpid configuration"
	${supervisor} ${RC_SVCNAME} --signal HUP --pidfile /run/acpid.pid
	eend $?
}