respawn not working ?

Karshan Sharma sharma34 at illinois.edu
Tue May 17 03:18:18 UTC 2011


So i'm using the default tty scripts i think, but with agetty instead
of tty, but my terminals dont respawn on exit even though i have
specified exit in the upstart job.
the upstart job is basically this:

start on mountall-done
stop on shutdown

task

respawn
exec /sbin/agetty tty1 38400

but when i exit from tty1 it doesn't respawn. here's verbose init
output when i exit the tty:

init: tty1 main process (1016) exited normally
init: tty1 goal changed from start to stop
init: tty1 state changed from running to stopping
init: Handling stopping event
init: tty1 state changed from stopping to killed
init: tty1 state changed from killed to post-stop
init: tty1 state changed from post-stop to waiting
init: Handling stopped event

is this whats supposed to happen ? is agetty returning a failure maybe
? any ideas why agetty isnt respawning ?

Thanks
Karshan



More information about the upstart-devel mailing list