Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to add an application to start automatically on system startup in Linux? My distro: Mandriva 2009.1

share|improve this question
up vote 1 down vote accepted

Mandriva seems quite similar to Red Hat in it's handling of startup scripts. If you installed the software from an RPM and it is designed to be run as a server then there is probably an init script already available.

If you run:

chkconfig --list

You can see all of the daemons that might potentially be run at startup. If the program you wish to start is in that list then you probably just need to configure it to start when your computer loads. Do this with:

chkconfig --level 345 <service_name> on

If it isn't in the list then you have a little more work to do. has all the gory details.

share|improve this answer
Though I have thrown in an alternative approach (just for completeness), I'd guess this is the method most suited to the OPs needs. – dmckee Mar 2 '10 at 21:01

If you are referring to job scheduling you should take a look at Cron and Crontab

share|improve this answer

In addition to setting up the init scripts (either using chkconfig or by hand hacking the /etc/init.d hierarchy) and using cron (8), some simple services can be handled from /etc/inittab.

See for instance Using inittab to ensure sshd (and other important items) are still running — any drawbacks? on Server Fault.

share|improve this answer
I personally wouldn't use inittab to start a service, for safety reasons. Screw up an /etc/ script and you don't launch that service. Screw up inittab and your system may not boot. – Rich Homolka Sep 2 '10 at 17:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .