Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am running a java application with mysql as back-end and i am using fedora operating system, now is there any way to run that application alone when that system boots up and also i want to disable all other unwanted services which is not required for the application to run. How do i achieve this ? Any tips and help would be useful

share|improve this question

migrated from stackoverflow.com Oct 14 '11 at 2:35

This question came from our site for professional and enthusiast programmers.

4 Answers 4

In SysV-like distributions (like fedora), services are started at boot and stopped at shutdown by the init.d system.

share|improve this answer

To set mysql service start with the system boot process, execute chkconfig mysqld on as root. You can refer the document below for more assistance:

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch34:_Basic_MySQL_Configuration#Starting_MySQL

To start the application on system startup, you can configure the script file as mentioned in the link below:

http://www.cyberciti.biz/tips/linux-how-to-run-a-command-when-boots-up.html

To find the running services and to manage them on start up, you can refer the link below:

http://www.fedorafaq.org/basics/#services

share|improve this answer
    
thank you .......... –  peedee Oct 13 '11 at 8:55

To integrate Java apps into Linux's init.d system you may find http://wrapper.tanukisoftware.com/doc/english/product-overview.html useful.

share|improve this answer

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.