clearer names for actions, and infer actions better
[monitor.git] / monitor-runlevelagent.init
index 3c8b40d..165f7e8 100644 (file)
@@ -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)