mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-28 23:21:53 +00:00
41 lines
739 B
Bash
Executable file
41 lines
739 B
Bash
Executable file
#!/bin/bash
|
|
|
|
[ -f /etc/conf.d/abyssws ] && . /etc/conf.d/abyssws
|
|
|
|
. /etc/rc.conf
|
|
. /etc/rc.d/functions
|
|
|
|
case "$1" in
|
|
start)
|
|
stat_busy "Starting Abyss Web Server X1"
|
|
/opt/abyssws/abyssws -d $OPTIONS
|
|
if [ $? -gt 0 ]; then
|
|
stat_fail
|
|
else
|
|
add_daemon abyssws
|
|
stat_done
|
|
fi
|
|
;;
|
|
stop)
|
|
stat_busy "Stopping Abyss Web Server X1"
|
|
/opt/abyssws/abyssws --stop
|
|
if [ $? -gt 0 ]; then
|
|
stat_fail
|
|
else
|
|
rm_daemon abyssws
|
|
stat_done
|
|
fi
|
|
;;
|
|
restart)
|
|
stat_busy "Restarting Abyss Web Server X1"
|
|
/opt/abyssws/abyssws --restart
|
|
if [ $? -gt 0 ]; then
|
|
stat_fail
|
|
else
|
|
stat_done
|
|
fi
|
|
;;
|
|
*)
|
|
echo "usage: $0 {start|stop|restart}"
|
|
esac
|
|
exit 0
|