updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / openct / openct
blob15c438468a96d090eda848a475dfe123a4531c90
1 . /etc/rc.conf
2 . /etc/rc.d/functions
4 DAEMON=/usr/sbin/openct-control
5 NAME=openct
6 DESC="Smart Card Terminal Framework"
8 case "$1" in
9     start)
10         stat_busy "Starting $DESC"
11         $DAEMON init
12         if [ $? -gt 0 ]; then
13             stat_fail
14         else
15             add_daemon $NAME
16             stat_done
17         fi
18         ;;
19     stop)
20         stat_busy "Stopping $DESC"
21         $DAEMON shutdown
22         if [ $? -gt 0 ]; then
23             stat_fail
24         else
25             rm_daemon $NAME
26             stat_done
27         fi
28         ;;
29     restart)
30         $0 stop
31         $0 start
32         ;;
33     *)
34         echo "usage: $0 {start|stop|restart}"
35         ;;
36 esac
37 exit 0