]> git.pld-linux.org Git - packages/acpid.git/blob - acpid.upstart
- use functions, add load-modules
[packages/acpid.git] / acpid.upstart
1 description "ACPI Event Daemon"
2
3 # need syslog, or it will log to console
4 start on local-filesystems and started SERVICE=syslog
5 stop on pld.shutdown-started
6
7 respawn
8
9 script
10         . /etc/rc.d/init.d/functions
11
12         if [ -f /etc/sysconfig/acpid ]; then
13                 . /etc/sysconfig/acpid
14         fi
15
16         if is_yes "$NETLINK"; then
17                 PROGRAM_ARGS="$PROGRAM_ARGS -n"
18         fi
19         if [ "$CLIENTMAX" ]; then
20                 PROGRAM_ARGS="$PROGRAM_ARGS -C $CLIENTMAX"
21         fi
22         exec /usr/sbin/acpid -f $PROGRAM_ARGS
23 end script
This page took 0.026576 seconds and 3 git commands to generate.