]> spindle.queued.net Git - autox/blobdiff - debian/autox.init
actually use AUTOX_USER rather than the hardcoded olpc user
[autox] / debian / autox.init
index abe83a039b77393454dfa4c3c235dbc5691d80d6..a5a697f95c9f32d56bbd8eec31f072016044a7c8 100755 (executable)
@@ -29,7 +29,8 @@ if [ -f /etc/default/$NAME ] ; then
 fi
 
 if [ -z "$AUTOX_USER" ]; then
-       log_failure_msg "No user specified in /etc/default/${NAME}."
+       log_failure_msg "No user specified in /etc/default/${NAME}"
+       exit 0
 fi
 
 case "$1" in
@@ -42,7 +43,7 @@ case "$1" in
        #start-stop-daemon --start --chuid olpc --verbose --background --make-pidfile --pidfile $PIDFILE --user olpc --exec $DAEMON -- /dev/tty7
 #start-stop-daemon --start --verbose --background --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- /dev/tty7
        start-stop-daemon --start --background --pidfile $PIDFILE \
-                       --exec $DAEMON
+                       --exec $DAEMON -- $AUTOX_USER
 
        #start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS &
        log_end_msg $?