upstart process tracking
Hi,
On Ubuntu (or Redhat, etc) , which process does an upstart job track? Let me explain my question more. Within an upstart config file, there can be "exec" lines and "script" lines. Perhaps there might be multiple instances of these? not sure. At the very least, within a "script" section there could be many lines of code, and each line of code would generate a PID. That PID may or may not be long lasting. In many cases, it would not be. Put aside the issue of "expect fork" and "expect daemon", as I am not talking about forks or daemons. Here is an attempt at answering my own question. Your feedback is welcome: There is only one exec or script stanza permitted. The last PID is the one that's tracked. Does that sounds right? Thanks. |
Quote:
Quote:
|
It appears that using "exec" within the script block makes for a cleaner process list with "ps -ef"
script exec myprocess end script It appears that multiple statements won't be run: script exec myprocess1 exec myprocess2 end script myprocess2 isn't launched. |
"exec" within "script" block is not the same as "exec" from upstart job configuration file. That "exec" is a normal shell command as everything within "script / end script".
|
All times are GMT -5. The time now is 07:29 AM. |