diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-09 00:42:45 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-09 00:42:45 +0000 |
commit | 3365a05a94600afc7591b6962949efb2003ca728 (patch) | |
tree | 90a0a290d1907f559cc4a63bfbf018aa20acfdca /sys-power/nut/files | |
parent | Stable for HPPA (bug #194959). (diff) | |
download | gentoo-2-3365a05a94600afc7591b6962949efb2003ca728.tar.gz gentoo-2-3365a05a94600afc7591b6962949efb2003ca728.tar.bz2 gentoo-2-3365a05a94600afc7591b6962949efb2003ca728.zip |
Fix bug #195125 for pidfile locations.
(Portage version: 2.1.3.12)
Diffstat (limited to 'sys-power/nut/files')
-rwxr-xr-x | sys-power/nut/files/upsd.rc6 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys-power/nut/files/upsd.rc6 b/sys-power/nut/files/upsd.rc6 index b6422660b3e8..0cb34f620878 100755 --- a/sys-power/nut/files/upsd.rc6 +++ b/sys-power/nut/files/upsd.rc6 @@ -1,9 +1,10 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.2 2007/04/25 05:38:46 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.3 2007/10/09 00:42:45 robbat2 Exp $ opts="reload" +pidfile=/var/lib/nut/upsd.pid depend() { need net upsdrv @@ -15,7 +16,7 @@ start() { # clean up first pkill -u root -x upsd sleep 1s - rm -f /var/state/nut/upsd.pid + rm -f ${pidfile} # now start up start-stop-daemon --start --quiet --exec /usr/sbin/upsd eend $? @@ -23,12 +24,12 @@ start() { stop() { ebegin "Stopping upsd" - start-stop-daemon --stop --quiet --pidfile /var/lib/nut/upsd.pid + start-stop-daemon --stop --quiet --pidfile ${pidfile} eend $? } reload() { ebegin "Reloading upsd" - start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile /var/lib/nut/upsd.pid + start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile} eend $? } |