]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- new ones
authorPaweł Gołaszewski <blues@pld-linux.org>
Wed, 23 Jan 2002 05:41:26 +0000 (05:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.init -> 1.1
    acpid.sysconfig -> 1.1

acpid.init [new file with mode: 0644]
acpid.sysconfig [new file with mode: 0644]

diff --git a/acpid.init b/acpid.init
new file mode 100644 (file)
index 0000000..7460696
--- /dev/null
@@ -0,0 +1,59 @@
+#!/bin/sh
+#
+# acpid                Starts the acpi daemon
+#
+# chkconfig:   345 44 56
+# description: Listen and dispatch ACPI events from the kernel
+# processname: acpid
+#
+# pidfile:     /var/run/acpid.pid
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Configuration file.
+. /etc/sysconfig/acpid
+
+test -x /usr/sbin/acpid || echo "You need to check package!!"; exit 0
+
+RETVAL=0
+
+# See how we were called.
+case "$1" in
+       start)
+       # Start daemons.
+               if [ ! -f /var/lock/subsys/acpid ]; then
+                   msg_starting acpid $PROGRAM_ARGS
+                   daemon acpid
+                   RETVAL=$?
+                   [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
+               else
+                       msg_already_running acpid
+               fi
+               ;;
+       stop)
+               # Stop daemons.
+               if [ -f /var/lock/subsys/acpid ]; then
+                       msg_stopping acpid
+                       killproc acpid
+                       rm -f /var/lock/subsys/acpid >/dev/null 2>&1
+               else
+                       msg_not_running acpid
+                       exit 1
+               fi
+               ;;
+       reload)
+               trap "" SIGHUP
+               killall -HUP acpid
+               ;;
+       restart)
+               $0 stop
+               $0 start
+               ;;
+       status)
+               status acpid
+               ;;
+       *)
+               msg_Usage "$0 {start|stop|restart|reload|status}"
+               exit 1
+esac
diff --git a/acpid.sysconfig b/acpid.sysconfig
new file mode 100644 (file)
index 0000000..8bcb2a4
--- /dev/null
@@ -0,0 +1,7 @@
+# Customized setings for acpid
+
+# Define nice level for acpid:
+SERVICE_RUN_NICE_LEVEL="+0"
+
+# Program arguments:
+PROGRAM_ARGS=""
This page took 0.076042 seconds and 4 git commands to generate.