updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / exalt-svn / exaltd
blobc5ba5d74c3e4b82d0188e39ef8159e6f7d1189da
1 #!/bin/bash
3 # general config
4 . /etc/rc.conf
5 . /etc/rc.d/functions
7 case "$1" in
8 start)
9 #Check for running dbus, start when not running
10 ck_daemon dbus && /etc/rc.d/dbus start
11 stat_busy "Starting Exalt Connection Manager"
12 /usr/sbin/exalt-daemon
13 if [ $? -gt 0 ]; then
14 stat_fail
15 else
16 add_daemon exaltd
17 stat_done
20 stop)
21 stat_busy "Stopping Exalt Connection Manager"
22 killall exalt-daemon
23 if [ $? -gt 0 ]; then
24 stat_fail
25 else
26 rm_daemon hal
27 stat_done
30 restart)
31 $0 stop
32 sleep 1
33 $0 start
36 echo "usage: $0 {start|stop|restart}"
38 esac
39 exit 0