diff options
author | jose1711 | 2017-01-15 19:04:45 +0100 |
---|---|---|
committer | jose1711 | 2017-01-15 19:04:45 +0100 |
commit | 8d60b027b4c53b709a4f4aeb3569c3411903515f (patch) | |
tree | d7c1f7f0f895b8325dee635e5c2b214cde1608de /epos | |
download | aur-epos.tar.gz |
Initial commit to aur4 (migrated from https://github.com/aur-archive/epos)
Diffstat (limited to 'epos')
-rw-r--r-- | epos | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/bin/eposd` +case "$1" in + start) + stat_busy "Starting Epos" + if [ -z "$PID" ]; then + /usr/bin/eposd + fi + if [ ! -z "$PID" -o $? -gt 0 ]; then + stat_fail + else + add_daemon epos + stat_done + fi + ;; + stop) + stat_busy "Stopping Epos" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm_daemon epos + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac |