Contents of /trunk/slim/slim.rc
Parent Directory | Revision Log
Revision 1319 -
(show annotations)
(download)
Fri May 6 23:29:11 2011 UTC (13 years, 4 months ago) by niro
File size: 752 byte(s)
Fri May 6 23:29:11 2011 UTC (13 years, 4 months ago) by niro
File size: 752 byte(s)
added slim rc script
1 | #!/bin/bash |
2 | # $Id$ |
3 | |
4 | #%rlevels: 5:s 0:k 1:k 2:k 3:k 4:k 6:k |
5 | #%start: 95 |
6 | #%stop: 05 |
7 | |
8 | #%start: 95 |
9 | #%stop: 05 |
10 | |
11 | #deps |
12 | #%needs: |
13 | #%before: |
14 | #%after: |
15 | |
16 | source /etc/conf.d/rc |
17 | source $rc_functions |
18 | source /etc/profile |
19 | |
20 | case $1 in |
21 | start) |
22 | rc_print "Starting slim ..." |
23 | start-stop-daemon --start --quiet --exec /usr/bin/slim |
24 | evaluate_retval |
25 | |
26 | update_svcstatus $1 |
27 | splash svc_started "$(basename $0)" 0 |
28 | ;; |
29 | stop) |
30 | rc_print "Stopping slim ..." |
31 | start-stop-daemon --stop --quiet --exec /usr/bin/slim |
32 | evaluate_retval |
33 | |
34 | update_svcstatus $1 |
35 | splash svc_stopped "$(basename $0)" 0 |
36 | ;; |
37 | |
38 | restart) |
39 | $0 stop |
40 | sleep 1 |
41 | $0 start |
42 | ;; |
43 | |
44 | status) |
45 | statusproc /usr/bin/slim |
46 | ;; |
47 | *) |
48 | echo "Usage: $0 {start|stop|restart|status}" |
49 | exit 1 |
50 | ;; |
51 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |