summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/nut/files/upsd.rc6')
-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 $?
+}