3 # monitor-runlevelagent starts the RunlevelAgent in production mode.
5 # Load before nm, vcached, and vservers, vserver-reference
7 # description: Start RunlevelAgent to report the current Runlevel to PLC at
10 # Stephen Soltesz <soltesz@cs.princeton.edu>
11 # Copyright (C) 2008 The Trustees of Princeton University
18 ret=$( pgrep -f -l RunlevelAgent )
19 if [[ -z $ret ]] ; then
20 echo "Starting RunlevelAgent"
21 if [[ -f RunlevelAgent.py ]] ; then
22 RLA="/usr/bin/python ./RunlevelAgent.py"
24 RLA=/usr/bin/RunlevelAgent.py
26 $RLA &> /var/log/rla.log &
37 pkill -f RunlevelAgent
41 echo $"Usage: $0 {start|stop|restart|status}"