X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor-runlevelagent.init;h=165f7e8ed992a6ac95caa518e04b15c12f606864;hb=5757568294bc4a4fee336acbc1822c28166b5715;hp=3c8b40dee08c1c87b49999cc21d8174cc1df5446;hpb=e891b3c147dd5935b80a810e7b45767d01e11d2e;p=monitor.git diff --git a/monitor-runlevelagent.init b/monitor-runlevelagent.init index 3c8b40d..165f7e8 100644 --- a/monitor-runlevelagent.init +++ b/monitor-runlevelagent.init @@ -15,6 +15,7 @@ function start_rla () { + args=$1 ret=$( pgrep -f -l RunlevelAgent ) if [[ -z $ret ]] ; then echo "Starting RunlevelAgent" @@ -23,14 +24,14 @@ function start_rla () else RLA=/usr/bin/RunlevelAgent.py fi - $RLA &> /var/log/rla.log & + $RLA $args > /var/log/rla.log 2>&1 & fi } case "$1" in start|restart|reload) - start_rla + start_rla $2 ;; stop|status)