Use exec when starting AppController
This allows start-stop-daemon to use the right process when
creating the pidfile. Otherwise, it uses the parent bash process.
@@ -38,7 +38,7 @@ do_start()
log_daemon_msg "Starting system $DAEMON_NAME daemon"
start-stop-daemon --start --background --make-pidfile --pidfile $PIDFILE\
--user $DAEMON_USER --chuid $DAEMON_USER --startas /bin/bash -- -c\
- "$DAEMON >> $LOG_FILE 2>&1"
+ "exec $DAEMON >> $LOG_FILE 2>&1"
log_end_msg $?
}
