<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm using ubuntu 7.04, and upstart uses old rc structures to start all
daemons...<br>
so there is a job for each server, like apache or mysql...<br>
so how could I use the statement "start on started mysql"...<br>
mysql isn't a job for upstart....mysqld in started by rc script<br>
and ubuntu daemon startup script don't generate events for upstart....<br>
<br>
<br>
arafangion ha scritto:
<blockquote cite="mid:1193534287.7174.58.camel@therock" type="cite">
  <pre wrap="">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:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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
    </pre>
  </blockquote>
  <pre wrap=""><!---->call 
  </pre>
  <blockquote type="cite">
    <pre wrap="">my program.
initctl list shows my job, but it's in (stop) waiting state...
why it can't start automatically?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Has it been told to start on a particular event, and was that event
started?

  </pre>
  <blockquote type="cite">
    <pre wrap="">If I start it manually, then the respawn options restarts it when it 
dies (I'm killing it)....
    </pre>
  </blockquote>
  <pre wrap=""><!---->
try 'initctl stop &lt;job name&gt;' instead.

  </pre>
  <blockquote type="cite">
    <pre wrap="">but it doesn't start automatically at boot time....
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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.

  </pre>
  <blockquote type="cite">
    <pre wrap="">maybe (but I don't know...there no debugging informations where to 
search for malfunctioning causes) because this program depends on
    </pre>
  </blockquote>
  <pre wrap=""><!---->mysqld...
  </pre>
  <blockquote type="cite">
    <pre wrap="">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
    </pre>
  </blockquote>
  <pre wrap=""><!---->phase?
  </pre>
  <blockquote type="cite">
    <pre wrap="">thanks in advance,
Carlo
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The job called 'mysql' causes the event, alternatively, mysqld's startup
script could send the event.

  </pre>
</blockquote>
<br>
</body>
</html>