aboutsummaryrefslogtreecommitdiff
path: root/net/apcupsd/files/apcupsd.init
blob: 54543779614ffe317ffae7120fa9ed40a1ff8c87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
STOP=50

start() {
	/usr/sbin/apcupsd -f /etc/apcupsd/apcupsd.conf
}

stop() {
	kill $(cat /var/run/apcupsd.pid)
}