3 # observer Starts and stops Observer daemon
6 # Source function library.
7 . /etc/init.d/functions
9 [ -f /etc/sysconfig/plstackobserver ] && . /etc/sysconfig/plstackobserver
12 plstackobserver=${NODEMANAGER-"python /opt/planetstack/planetstack-backend.py -d"}
13 prog="OpenCloud Observer"
14 pidfile=${PIDFILE-/var/run/plstackobserver.pid}
19 action $"Starting $prog: " daemon --pidfile=$pidfile --check=plstackobserver $plstackobserver "$@"
23 action $"Stopping $prog: " killproc -p $pidfile plstackobserver
34 status -p $pidfile plstackobserver
44 [ -f ${pidfile} ] && { stop; start $options "$@"; }
49 $plstackobserver $verboseoptions "$@"
54 echo "Restarting with $debugoptions $@ .."
55 $plstackobserver $debugoptions "$@"
58 echo $"Usage: $0 {start|stop|status|restart|condrestart|restartdebug [-d]}"