9 stat_busy
"Starting ROLE"
11 su
- role
-c "cd db && java -Djetty.host=127.0.0.1 -Djetty.port=8073 -jar /opt/role/webapps/jetty-runner.jar --port 8073 /opt/role/webapps/role-uu-prototype.war --path /cam /opt/role/webapps/CamWebService.war --path /role /opt/role/ >> /var/log/role.log 2>&1" -s /bin
/sh
> /dev
/null
2>&1 &
15 echo `ps -fu role | awk 'NR != 1 {print $2}'` > /var
/run
/role.pid
24 stat_busy
"Stopping ROLE"
26 [ -e /var
/run
/role.pid
] && PID
=`cat /var/run/role.pid`
27 [ ! -z "$PID" ] && kill $PID &> /dev
/null
32 rm -f /var
/run
/role.pid
42 echo "usage: $0 {start|stop|restart}"