blob: d76f19c9e424beebd8207c64f4a94b78fd69f124 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/nut/files/upsd-init,v 1.1 2004/08/15 15:19:10 stuart 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
}
|