updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / abyssws / abyssws.rc.d
blobcc2999fd6e2f0ed1ae9328e56b95e905a0e86cab
1 #!/bin/bash
3 [ -f /etc/conf.d/abyssws ] && . /etc/conf.d/abyssws
5 . /etc/rc.conf
6 . /etc/rc.d/functions
8 case "$1" in
9 start)
10 stat_busy "Starting Abyss Web Server X1"
11 /opt/abyssws/abyssws -d $OPTIONS
12 if [ $? -gt 0 ]; then
13 stat_fail
14 else
15 add_daemon abyssws
16 stat_done
19 stop)
20 stat_busy "Stopping Abyss Web Server X1"
21 /opt/abyssws/abyssws --stop
22 if [ $? -gt 0 ]; then
23 stat_fail
24 else
25 rm_daemon abyssws
26 stat_done
29 restart)
30 stat_busy "Restarting Abyss Web Server X1"
31 /opt/abyssws/abyssws --restart
32 if [ $? -gt 0 ]; then
33 stat_fail
34 else
35 stat_done
39 echo "usage: $0 {start|stop|restart}"
40 esac
41 exit 0