6 PID
=$
(pidof
-o %PPID
/usr
/bin
/rxstack
)
10 printf "${C_OTHER}[${C_DONE}STARTED${C_OTHER}]${C_CLEAR} \n"
15 printf "${C_OTHER}[${C_DONE}STOPPED${C_OTHER}]${C_CLEAR} \n"
20 stat_busy
"Starting Regina Stack"
21 [ -z "${PID}" ] && /usr
/bin
/rxstack
-d &> /dev
/null
30 stat_busy
"Stopping Regina Stack"
31 /usr
/bin
/rxstack
-k &> /dev
/null
40 stat_busy
"Regina Stack"
42 [ -z "${PID}" ] && stat_stopped
43 [ -z "${PID}" ] || stat_started
51 echo "usage: $0 {start|stop|status|restart}"