]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/init.d/apcupsd
Add bootoption to skip an initskript.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / apcupsd
CommitLineData
c4dd2388
JPT
1#!/bin/sh
2# Begin $rc_base/init.d/apcupsd
3
4# Based on sysklogd script from LFS-3.1 and earlier.
5
6. /etc/sysconfig/rc
7. $rc_functions
8
9case "$1" in
10 start)
11 boot_mesg "Starting apcupsd daemon..."
12 loadproc apcupsd
13 ;;
14 stop)
15 boot_mesg "Stopping apcupsd daemon..."
16 killproc apcupsd
17 ;;
18 status)
19 statusproc /sbin/apcupsd
20 ;;
21 *)
22 echo "Usage: $0 (start|stop|status)"
23 exit 1
24 ;;
25esac
26
27# End $rc_base/init.d/apcupsd