]>
Commit | Line | Data |
---|---|---|
f296196c CS |
1 | #!/bin/sh |
2 | # Begin $rc_base/init.d/lcd4linux | |
3 | ||
4 | ||
5 | . /etc/sysconfig/rc | |
6 | . $rc_functions | |
7 | ||
8 | case "$1" in | |
9 | start) | |
10 | boot_mesg "Starting lcd4linux..." | |
11 | if [ ! -f /etc/lcd4linux.conf ]; then | |
12 | boot_mesg "No configuration file found, not starting." | |
13 | exit 1 | |
14 | fi | |
15 | ||
16 | loadproc /usr/bin/lcd4linux | |
17 | ;; | |
18 | ||
19 | stop) | |
20 | boot_mesg "Stopping lcd4linux..." | |
21 | killproc /usr/bin/lcd4linux | |
22 | ;; | |
23 | ||
24 | reload) | |
aa38dc1b CS |
25 | boot_mesg "Reloading lcd4linux..." |
26 | reloadproc /usr/bin/lcd4linux | |
f296196c CS |
27 | ;; |
28 | ||
29 | restart) | |
30 | $0 stop | |
31 | sleep 3 | |
32 | $0 start | |
33 | ;; | |
34 | ||
35 | status) | |
36 | statusproc /usr/bin/lcd4linux | |
37 | ;; | |
38 | ||
39 | *) | |
40 | echo "Usage: $0 {start|stop|reload|restart|status}" | |
41 | exit 1 | |
42 | ;; | |
43 | esac | |
44 | ||
45 | ||
46 | # End $rc_base/init.d/lcd4linux |