respawn not working ?

Clint Byrum clint at ubuntu.com
Tue May 17 16:52:53 UTC 2011


Excerpts from Karshan Sharma's message of Mon May 16 20:18:18 -0700 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

This may be your problem, as task is meant to be used when
you want something to run *one time* and be blocked on through
the entire life cycle. Getty is more of a job, so remove this
unless you have a good reason for it.

> 
> 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