Startup Items on Ubuntu

June 28th, 2010 § 0 comments

If you’ve ever wanted to get a script to run on boot (or have a daemon like cijoe or ar_sendmail start up, for example), you’ll need to put an appropriate script in the /etc/init.d directory. You’ll also need to ensure it is executable (chmod +x).

After that, though, you need to create appropriate symlinked versions in the run-level directories (those are the directories like /etc/rc0.d, /etc/rc1.d, etc.). The way to go about doing this is (in the most basic and default fashion):

update-rc.d <SCRIPT_NAME_FROM_INIT.D> defaults

E.g.

update-rc.d cijoed defaults

Your script should now run on boot.

Tagged , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

What's this?

You are currently reading Startup Items on Ubuntu at humandoing software.

meta