updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / sova / smanager2.rc
blob860fa5f122b077e11b8ba05aa94f00b81d1c0ad8
1 #!/bin/bash
3 # SOVA Services Manager 2 start/stop script.
5 # based on AUR/community/openntpd 3.9p1-7 package start/stop script
6 # by Vesa Kaihlavirta (vegai), vegai at amessage dot info
9 CONF=/etc/conf.d/smanager2
11 . /etc/rc.conf
12 . /etc/rc.d/functions
14 [ -f $CONF ] && . $CONF
16 case "$1" in
17 start)
18 stat_busy "Launching SOVA Service Manager's services:"
20 binaries_paths
21 custom_variables
22 start_smanager
24 if [ "$?" -gt 0 ]
25 then
26 stat_fail
27 else
28 stat_done
31 stop)
32 stat_busy "Stopping SOVA Service Manager's services:"
34 binaries_paths
35 custom_variables
36 stop_smanager
38 if [ "$?" -gt 0 ]
39 then
40 stat_fail
41 else
42 stat_done
45 restart)
46 $0 stop
47 sleep 2
48 $0 start
51 echo "usage: $0 {start|stop|restart}"
52 esac
54 exit 0
56 # EOF