summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2007-04-25 05:38:46 +0000
committerDaniel Black <dragonheart@gentoo.org>2007-04-25 05:38:46 +0000
commit5d4735837698450156efb7ea54b39b88d681ae2a (patch)
tree3c3e6f319e9ca6034041e33a35fb5d7383cad15e /sys-power/nut/files
parentVersion bump (diff)
downloadgentoo-2-5d4735837698450156efb7ea54b39b88d681ae2a.tar.gz
gentoo-2-5d4735837698450156efb7ea54b39b88d681ae2a.tar.bz2
gentoo-2-5d4735837698450156efb7ea54b39b88d681ae2a.zip
added reload to upsd init script. bug #175928
(Portage version: 2.1.2.2)
Diffstat (limited to 'sys-power/nut/files')
-rwxr-xr-xsys-power/nut/files/upsd.rc610
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-power/nut/files/upsd.rc6 b/sys-power/nut/files/upsd.rc6
index ebe6414b06e7..b6422660b3e8 100755
--- a/sys-power/nut/files/upsd.rc6
+++ b/sys-power/nut/files/upsd.rc6
@@ -1,7 +1,9 @@
#!/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.1 2006/05/15 23:43:08 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.2 2007/04/25 05:38:46 dragonheart Exp $
+
+opts="reload"
depend() {
need net upsdrv
@@ -24,3 +26,9 @@ stop() {
start-stop-daemon --stop --quiet --pidfile /var/lib/nut/upsd.pid
eend $?
}
+
+reload() {
+ ebegin "Reloading upsd"
+ start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile /var/lib/nut/upsd.pid
+ eend $?
+}