From a877de0f434e397a5bfb5b8e0e737d2e5cb1594d Mon Sep 17 00:00:00 2001 From: Peter Pfeiffer Date: Sun, 6 Sep 2009 12:21:40 +0200 Subject: [PATCH] add config-dir for apcupsd --- config/apcupsd/apcupsd | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/apcupsd/apcupsd diff --git a/config/apcupsd/apcupsd b/config/apcupsd/apcupsd new file mode 100644 index 000000000..e5923c5fd --- /dev/null +++ b/config/apcupsd/apcupsd @@ -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 + -- 2.39.2