summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kalika <max@gentoo.org>2003-10-16 23:26:29 +0000
committerMax Kalika <max@gentoo.org>2003-10-16 23:26:29 +0000
commit1f606877dbb57e14e751575ec57ba0130471e700 (patch)
treee1ea942a0d42dfba2a9c0815a4d1ed4c4e117ff1 /net-misc/nut/files/upsmon.rc6
parentAdd CGI flag for net-misc/nut. (diff)
downloadhistorical-1f606877dbb57e14e751575ec57ba0130471e700.tar.gz
historical-1f606877dbb57e14e751575ec57ba0130471e700.tar.bz2
historical-1f606877dbb57e14e751575ec57ba0130471e700.zip
Major cleanup. Thanks Robin.
Diffstat (limited to 'net-misc/nut/files/upsmon.rc6')
-rw-r--r--net-misc/nut/files/upsmon.rc625
1 files changed, 25 insertions, 0 deletions
diff --git a/net-misc/nut/files/upsmon.rc6 b/net-misc/nut/files/upsmon.rc6
new file mode 100644
index 000000000000..cdcf346141a4
--- /dev/null
+++ b/net-misc/nut/files/upsmon.rc6
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nut/files/upsmon.rc6,v 1.1 2003/10/16 23:26:27 max Exp $
+
+depend() {
+ need net
+ before upsmon
+}
+
+start() {
+ ebegin "Starting upsd"
+ /sbin/upsdrvctl start
+ start-stop-daemon --start --quiet --startas /usr/sbin/upsd \
+ --pidfile=/var/state/nut/upsd.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upsd"
+ start-stop-daemon --stop --quiet --pidfile=/var/state/nut/upsd.pid
+ rc=$?
+ /sbin/upsdrvctl stop
+ eend $rc
+}