[CentOS] best way to start and shutdown programs in CentOS?

Brian Mathis brian.mathis at gmail.com
Mon Nov 22 14:36:31 UTC 2010

2010/11/21 Jorge Fábregas <jorge.fabregas at gmail.com>:
> On Sunday 21 November 2010 20:19:59 Kill Script wrote:
>> I have a Java program that I want to start up with every boot, but I'm
>> unsure how to do it.
> Put the call to your script on this file:
> /etc/rc.d/rc.local
> HTH,
> Jorge

It may be tempting to use the rc.local, but that's the quick and dirty
way and not good for the long-term sustainability and management of a
system.  There's no way to individually control any service running
from there, and no way to stop it on shutdown.

More information about the CentOS mailing list