#!/sbin/runscript # Copyright 1999-2002 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/upsd-init,v 1.1 2002/08/04 03:15:52 woodchip 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 }