6 PID
=$
(pidof
-o %PPID
/opt
/rocrail
/rocrail
)
10 stat_busy
"Starting Rocrail Daemon"
11 if [[ -z $PID ]] && /opt
/rocrail
/rocraild.sh
&>/dev
/null
; then
12 PID
=$
(pidof
-o %PPID
/opt
/rocrail
/rocrail
)
13 echo "$PID" > /var
/run
/rocrail.pid
23 stat_busy
"Stopping Rocrail Daemon"
24 if [[ ! -z $PID ]] && kill "$PID" &>/dev
/null
; then
40 echo "Usage: $0 {start|stop|restart}" >&2