start process at boot time
arafangion
arafangion at fussycoder.id.au
Sun Oct 28 01:18:07 GMT 2007
Sorry, sent original to Wakan, resending to list.
I am very new to upstart, but I'll try to help. :)
On Sat, 2007-10-27 at 15:50 +0200, Wakan wrote:
> I'm trying to start a server program using upstart job...
> I copied tty1 job in a new job and modified the exec statement to
call
> my program.
> initctl list shows my job, but it's in (stop) waiting state...
> why it can't start automatically?
Has it been told to start on a particular event, and was that event
started?
> If I start it manually, then the respawn options restarts it when it
> dies (I'm killing it)....
try 'initctl stop <job name>' instead.
> but it doesn't start automatically at boot time....
Try 'start on startup', but this will likely start it much too early,
doing 'start on started foo' where foo is a dependency is much better.
> maybe (but I don't know...there no debugging informations where to
> search for malfunctioning causes) because this program depends on
mysqld...
> so maybe it needs to start after mysqld started...
> I read around that I can use the mysql event to wake up my job...but
> who tells mysqld to generate the event "mysql" after it's startup
phase?
> thanks in advance,
> Carlo
The job called 'mysql' causes the event, alternatively, mysqld's startup
script could send the event.
More information about the upstart-devel
mailing list