summaryrefslogtreecommitdiff
blob: 01fcd5f61c4fcbda0a6933b43a624f87aeae4e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/powersave/files/powersaved.rc,v 1.2 2007/05/28 17:48:23 genstef Exp $

depend() {
	need localmount dbus hald
	use logger acpid
}

start() {
	ebegin "Starting powersave daemon"
	start-stop-daemon --start --quiet --exec /usr/sbin/powersaved -- \
		-d \
		$([ -S /var/run/acpid.socket ] && echo "-f /var/run/acpid.socket")
	eend $?
}

stop() {
	ebegin "Stopping powersave daemon"
	start-stop-daemon --stop --exec /usr/sbin/powersaved
	eend $?
}