Changes

Jump to navigation Jump to search
Line 35: Line 35:  
   local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
 
   local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
 
   su -c "$CMD" $RUNAS > "$PIDFILE"
 
   su -c "$CMD" $RUNAS > "$PIDFILE"
<nowiki>#Try with this command line if not workable
+
# su -c "$CMD" $RUNAS > "$PIDFILE"</nowiki>
+
# Try with this command line if not workable
 +
#   su -s su -s /bin/bash $RUNAS -c "$CMD" > "$PIDFILE"
 +
 
   sleep 2
 
   sleep 2
 
   PID=$(cat $PIDFILE)
 
   PID=$(cat $PIDFILE)

Navigation menu