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 | 76a06ee4e759dc2418112b39de780a811accd213 (patch) | |
tree | cd2ee22c7552bb52898c98ec7f84154e34249f5d /sys-power/nut/files | |
parent | Stable for HPPA (bug #194959). (diff) | |
download | historical-76a06ee4e759dc2418112b39de780a811accd213.tar.gz historical-76a06ee4e759dc2418112b39de780a811accd213.tar.bz2 historical-76a06ee4e759dc2418112b39de780a811accd213.zip |
Fix bug #195125 for pidfile locations.
Package-Manager: portage-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 $? } |