Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175928 - sys-power/nut init.d/upsd wants a reload
Summary: sys-power/nut init.d/upsd wants a reload
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 05:37 UTC by Daniel Black (RETIRED)
Modified: 2007-04-25 05:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Black (RETIRED) gentoo-dev 2007-04-25 05:37:20 UTC
Added thanks Robin.

--- files/upsd.rc6      2006-05-16 09:43:08.000000000 +1000
+++ /etc/init.d/upsd    2007-04-25 14:41:54.000000000 +1000
@@ -3,6 +3,8 @@
 # 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 $

+opts="reload"
+
 depend() {
        need net upsdrv
        before upsmon
@@ -24,3 +26,9 @@
        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 $?
+}
Comment 1 Daniel Black (RETIRED) gentoo-dev 2007-04-25 05:38:22 UTC
commited - thanks.