Timo Schoeler
2009-Nov-18 09:56 UTC
[CentOS] Removing respawning process from inittab w/o killing it
-----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? Thanks, Timo -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFLA8Syfg746kcGBOwRAjy1AKCPvwHnMVUwDN+6WDPjHebth7q1owCfUsp5 c7KoNas8jThxoP72c3JzK7Q=yWef -----END PGP SIGNATURE-----
William L. Maltby
2009-Nov-18 10:30 UTC
[CentOS] Removing respawning process from inittab w/o killing it
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
Reasonably Related Threads
- inittab - huh what's it good for?
- error message: INIT: Id "s0" respawning toofast:disable for 5 minutes
- error message: INIT: Id "s0" respawning too fast: disable for 5 minutes
- Shutdown script not being run
- Are these steps for re-installing Gnome correct/safe?