[CentOS] Removing respawning process from inittab w/o killing it

Wed Nov 18 10:30:11 UTC 2009
William L. Maltby <CentOS4Bill at triad.rr.com>

On Wed, 2009-11-18 at 10:56 +0100, Timo Schoeler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi list,
> 
> I need to remove an entry of inittab which is used to (re)spawn a process:
> 
> mydemon:2345:respawn:/usr/sbin/mydemon >/dev/null 2>&1
> 
> So, I would comment out that entry and reload init running ``telinit
> q''. IIRC, this would lead to the currently running daemon being killed.
> I don't want to /try/ whether I'm right, as those are production systems.
> 
> Is there any possibility (given that ``telinit q'' kills the running
> process) to 'keep the process alive' _and_ reload init?

If I understand what "man telinit" intends, it looks like the "-u" or
"-U" might do what you want.

Test it on some local desktop system since you can't test on your
production?

-- 
Bill