From 94334bfaf64c217b50e6f3e9a6bfb1d48e29e349 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Thu, 12 Feb 2009 12:26:10 -0500 Subject: [PATCH] cleanups Signed-off-by: Andres Salomon --- autox | 8 -------- debian/autox.init | 5 +++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/autox b/autox index 014bdc2..02dcbab 100755 --- a/autox +++ b/autox @@ -3,11 +3,8 @@ TIMEOUT=20 PIDFILE=/var/run/autox.pid -#moo() { - echo $$ > $PIDFILE trap "rm -f $PIDFILE; killall -9 startx" 0 -#trap "killall startx" 0 fails=0 while true; do @@ -27,10 +24,5 @@ while true; do exit 1 fi done -#} - - -#input_dev=$(readlink -f /dev/stdin) -#autox_daemon "$input_device" & exit 0 diff --git a/debian/autox.init b/debian/autox.init index b907ff3..abe83a0 100755 --- a/debian/autox.init +++ b/debian/autox.init @@ -5,7 +5,7 @@ # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 -# Short-Description: Automatically start X as a user +# Short-Description: Automatically start X on boot ### END INIT INFO # # Author: Andres Salomon @@ -41,7 +41,8 @@ case "$1" in # -- /dev/tty7 #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 + start-stop-daemon --start --background --pidfile $PIDFILE \ + --exec $DAEMON #start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS & log_end_msg $? -- 2.39.5