Contents of /trunk/libchipcard/chipcardd.rc
Parent Directory | Revision Log
Revision 32 -
(show annotations)
(download)
Sat Jul 30 15:05:13 2005 UTC (19 years, 2 months ago) by niro
File size: 840 byte(s)
Sat Jul 30 15:05:13 2005 UTC (19 years, 2 months ago) by niro
File size: 840 byte(s)
new file
1 | #!/bin/sh |
2 | # $Header: /root/magellan-cvs/src/libchipcard/chipcardd.rc,v 1.1 2005-07-30 15:05:13 niro Exp $ |
3 | |
4 | #%rlevels: 3:s 4:s 5:s 0:k 6:k |
5 | #%start: 80 |
6 | #%stop: 20 |
7 | |
8 | #deps |
9 | #%needs: |
10 | #%before: |
11 | #%after: |
12 | |
13 | source /etc/sysconfig/rc |
14 | source $rc_functions |
15 | |
16 | case $1 in |
17 | start) |
18 | echo -e ${COLOREDSTAR}"Starting libchipcard daemon ..." |
19 | start-stop-daemon --start --quiet --exec /usr/sbin/chipcardd |
20 | evaluate_retval |
21 | |
22 | update_svcstatus $1 |
23 | splash svc_started "$(basename $0)" 0 |
24 | ;; |
25 | |
26 | stop) |
27 | echo -e ${COLOREDSTAR}"Stopping libchipcard daemon ..." |
28 | start-stop-daemon --stop --quiet --exec /usr/sbin/chipcardd |
29 | evaluate_retval |
30 | |
31 | update_svcstatus $1 |
32 | splash svc_stopped "$(basename $0)" 0 |
33 | ;; |
34 | |
35 | restart) |
36 | $0 stop |
37 | sleep 1 |
38 | $0 start |
39 | ;; |
40 | |
41 | status) |
42 | statusproc chipcardd |
43 | ;; |
44 | |
45 | *) |
46 | echo "Usage: $0 {start|stop|restart|status}" |
47 | exit 1 |
48 | ;; |
49 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |