function start_rla ()
{
+ args=$1
ret=$( pgrep -f -l RunlevelAgent )
if [[ -z $ret ]] ; then
echo "Starting RunlevelAgent"
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)