]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Added initscript for apcupsd
authorJan Paul Tuecking <earl@ipfire.org>
Mon, 19 Oct 2009 18:46:32 +0000 (20:46 +0200)
committerJan Paul Tuecking <earl@ipfire.org>
Mon, 19 Oct 2009 18:46:32 +0000 (20:46 +0200)
Fixes bug #0000478

src/initscripts/init.d/apcupsd [new file with mode: 0644]

diff --git a/src/initscripts/init.d/apcupsd b/src/initscripts/init.d/apcupsd
new file mode 100644 (file)
index 0000000..329dd80
--- /dev/null
@@ -0,0 +1,27 @@
+#!/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
\ No newline at end of file