Files
bpfire/src/initscripts/init.d/apcupsd
Jan Paul Tuecking c4dd2388a5 Added initscript for apcupsd
Fixes bug #0000478
2009-10-19 20:46:32 +02:00

27 lines
425 B
Bash

#!/bin/sh
# Begin $rc_base/init.d/apcupsd
# Based on sysklogd script from LFS-3.1 and earlier.
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
boot_mesg "Starting apcupsd daemon..."
loadproc apcupsd
;;
stop)
boot_mesg "Stopping apcupsd daemon..."
killproc apcupsd
;;
status)
statusproc /sbin/apcupsd
;;
*)
echo "Usage: $0 (start|stop|status)"
exit 1
;;
esac
# End $rc_base/init.d/apcupsd