Changes

From SME Server
Jump to navigationJump to search
No change in size ,  22:04, 15 August 2015
Line 34: Line 34:  
  echo 'Starting service…' >&2
 
  echo 'Starting service…' >&2
 
   local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
 
   local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
   su -c "$CMD" $RUNAS > "$PIDFILE"
+
   su -s /bin/sh $RUNAS -c "$CMD" > "$PIDFILE"
 
   
 
   
 
  # Try with this command line instead of above if not workable
 
  # Try with this command line instead of above if not workable
  # su -s /bin/sh $RUNAS -c "$CMD" > "$PIDFILE"
+
  # su -c "$CMD" $RUNAS > "$PIDFILE"
 
   
 
   
 
   sleep 2
 
   sleep 2

Navigation menu