This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join us in building a kind, collaborative learning community via our updated
Code of Conduct.

Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

If this file is saved as /etc/init/myjob.conf, it will create a job that starts at boot, respawns when it dies, and can be manually stopped (as root) with stop myjob, service myjob stop, or initctl stop myjob.

...what if he's running a pre-upstart version of Ubuntu? :)
– voretaq7Nov 15 '12 at 21:57

1

@voretaq7 Then he should upgrade, because the last version that didn't have Upstart was 6.06LTS (dapper), which stopped being supported in 2009 (2011 for servers).
– bonsaivikingNov 16 '12 at 12:24

Prior to 10.04LTS (lucid), the Upstart directory was /etc/event.d/, but those versions are also no longer supported. Here's a handy resource for Ubuntu end-of-life dates.
– bonsaivikingNov 16 '12 at 12:33

Upstart systems

For completeness, one of the most common init schemes is sysvinit, which consists of scripts in /etc/init.d/, symlinked from the appropriate /etc/rc[RUNLEVEL].d/, frequently configured with update-rc.d.
– bonsaivikingNov 16 '12 at 12:28