mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
add config-dir for apcupsd
This commit is contained in:
28
config/apcupsd/apcupsd
Normal file
28
config/apcupsd/apcupsd
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user