]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- upstart config
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 27 Jan 2011 21:48:11 +0000 (21:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid.upstart -> 1.1

acpid.upstart [new file with mode: 0644]

diff --git a/acpid.upstart b/acpid.upstart
new file mode 100644 (file)
index 0000000..c362167
--- /dev/null
@@ -0,0 +1,23 @@
+description "ACPI Event Daemon"
+
+# need syslog, or it will log to console
+start on local-filesystems and started SERVICE=syslog
+stop on pld.shutdown-started
+
+respawn
+
+script
+       . /etc/rc.d/init.d/functions
+
+       if [ -f /etc/sysconfig/acpid ]; then
+               . /etc/sysconfig/acpid
+       fi
+
+       if is_yes "$NETLINK"; then
+               PROGRAM_ARGS="$PROGRAM_ARGS -n"
+       fi
+       if [ "$CLIENTMAX" ]; then
+               PROGRAM_ARGS="$PROGRAM_ARGS -C $CLIENTMAX"
+       fi
+       exec /usr/sbin/acpid -f $PROGRAM_ARGS
+end script
This page took 0.121902 seconds and 4 git commands to generate.