Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

3 Answers 3

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. http://wiki.mandriva.com/en/Working_with_initscripts 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
add comment

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.