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

Mon Nov 22 19:37:52 UTC 2010
Kill Script <killscript at gmail.com>

On Mon, Nov 22, 2010 at 9:36 AM, Brian Mathis <brian.mathis at gmail.com>wrote:

> 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.
>

Yeah, thank you.  I talked with the person who wrote the Java program, and
he essentially said the same thing.

I'm looking through his suggestions now, and he suggested a shutdown script.
I others who have examples with pid.txt and "dirname $0".  Not sure what
these are and am googling them now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101122/b0144a4b/attachment-0005.html>