6 PID
=`pidof -o %PPID /usr/bin/svscan`
9 stat_busy
"Starting svscan"
10 # create necessary directories if they don't already exist
11 mkdir
-p /service
2>/dev
/null
12 [ -z "$PID" ] && /usr
/bin
/svscan
/service
&
21 stat_busy
"Stopping svscan"
22 [ ! -z "$PID" ] && kill $PID &> /dev
/null
28 stat_busy
"Stopping services ..."
32 stat_busy
"Stopping service logging ..."
33 svc
-dx /service
/*/log
43 [ ! -z "$PID" ] && wait "$PID"
47 echo "usage: $0 {start|stop|restart}"