summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/nut')
-rw-r--r--sys-power/nut/ChangeLog5
-rwxr-xr-xsys-power/nut/files/upsd.rc610
2 files changed, 13 insertions, 2 deletions
diff --git a/sys-power/nut/ChangeLog b/sys-power/nut/ChangeLog
index 49cee927ddb6..30007efa06e8 100644
--- a/sys-power/nut/ChangeLog
+++ b/sys-power/nut/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-power/nut
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.35 2007/04/22 13:48:52 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/ChangeLog,v 1.36 2007/04/25 05:38:46 dragonheart Exp $
+
+ 25 Apr 2007; Daniel Black <dragonheart@gentoo.org> files/upsd.rc6:
+ added reload to upsd init script. bug #175928
22 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org> nut-2.0.5-r1.ebuild:
ppc stable, bug #173878
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 $?
+}