summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-05-12 10:19:16 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-05-12 10:19:16 +0000
commit396730fe70ec53ed5b4a72360b38a4101bca3561 (patch)
tree2358c8903d6a07521d515453f7ff7e00cf2e3044 /sys-power/powerman/files
parentold (diff)
downloadgentoo-2-396730fe70ec53ed5b4a72360b38a4101bca3561.tar.gz
gentoo-2-396730fe70ec53ed5b4a72360b38a4101bca3561.tar.bz2
gentoo-2-396730fe70ec53ed5b4a72360b38a4101bca3561.zip
Let the init script handle creating /var/run/powerman wrt #450538. Convert from EAPI 1 to 5.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-power/powerman/files')
-rw-r--r--sys-power/powerman/files/powerman7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-power/powerman/files/powerman b/sys-power/powerman/files/powerman
index 3845d492aace..2abee8094795 100644
--- a/sys-power/powerman/files/powerman
+++ b/sys-power/powerman/files/powerman
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/powerman/files/powerman,v 1.3 2009/03/04 14:12:22 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/powerman/files/powerman,v 1.4 2014/05/12 10:19:16 ssuominen Exp $
depend() {
need net
@@ -9,6 +9,9 @@ depend() {
start() {
ebegin "Starting powermand"
+
+ checkpath -q -d -m 0755 /var/run/powerman
+
start-stop-daemon --start \
--pidfile /var/run/powerman/powermand.pid \
--exec /usr/sbin/powermand