Tasks that fork themselves
Asked by
Mahesh Asolkar
I am trying to setup upstart jobs for icecast2, mpd and mpdscribble. Icecast to start on startup, mpd to start on 'started icecast2' and mpdscribble to start on 'started mpd' and stop on 'stopped mpd'.
I wrote the jobs and they seem to be working as expected. But icecast2 and mpd both fork themselves off. Not sure the term 'fork off' is technically correct, but they go into background and unblock once started.
I think initctl thinks that the jobs are done when this happens. As a result, mpdscribble - which is stop on 'stopped mpd' is killed right away.
How do I handle tasks like icecast2 and mpd that unblock right after start?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jeff Oliver
- Solved:
- Last query:
- Last reply:
To post a message you must log in.