]>
Commit | Line | Data |
---|---|---|
444b9419 MT |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/acpid | |
4 | # | |
5 | # Description : ACPI daemon init script | |
6 | # | |
7 | ######################################################################## | |
8 | ||
9 | . /etc/sysconfig/rc | |
10 | . ${rc_functions} | |
11 | ||
444b9419 MT |
12 | case "${1}" in |
13 | start) | |
14 | boot_mesg "Starting ACPI daemon..." | |
eef0d706 AF |
15 | loadproc /usr/sbin/acpid > /dev/null 2>&1 |
16 | echo_ok; | |
444b9419 MT |
17 | ;; |
18 | ||
19 | stop) | |
20 | boot_mesg "Stopping ACPI daemon..." | |
21 | killproc /usr/sbin/acpid | |
22 | ;; | |
23 | ||
24 | restart) | |
25 | ${0} stop | |
26 | sleep 1 | |
27 | ${0} start | |
28 | ;; | |
29 | ||
30 | status) | |
31 | statusproc /usr/sbin/acpid | |
32 | ;; | |
33 | ||
34 | *) | |
35 | echo "Usage: ${0} {start|stop|restart|status}" | |
36 | exit 1 | |
37 | ;; | |
38 | esac | |
39 | ||
40 | # End $rc_base/init.d/acpid |