1

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

3 Answers 3

1

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.

1
  • Though I have thrown in an alternative approach (just for completeness), I'd guess this is the method most suited to the OPs needs. Commented Mar 2, 2010 at 21:01
0

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

0

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.

1
  • 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. Commented Sep 2, 2010 at 17:51

You must log in to answer this question.

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