-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Lee Stewart wrote:
> Hi...
> What are people doing to automatically start things like WAS, DB2, MQ
> etc.? Stuffing it at the end of /etc/inittab? Writing your own
> start/stop script for /etc/init.d? What's the "best" place to stick it?
Hi, Lee.
I personally have been cursing people that appended lines to
/etc/inittab since forever, to be honest. There are SO many things
lacking in such a "watchdog" scenario, should one even have the guts to
call it that way.
Identity of the spawned processes (everyone is root in inittab),
bypassing authorization (are your WAS profiles owned by non-root users?
replace a binary with a simple script, and you're dead), resource limits
(every modern linux system has pam, where almost every known mechanism
references pam_limits.so at least somewhere in a chain), not to mention
(not so very) odd circumstances where a process exits (almost, but just
not enough) immediately after it's been started, imposing a nice I/O,
CPU and memory penalty to the entire system, but just below the
"respawning too fast" watermark of init to disable it for five minutes
(!!!), and the list has just started here.
Using inittab for anything but delegating work to semi-intelligent
scripts that can work around those issues, or at least those issues
important to you, is pure incompetence. And if you're delegating, why
not leave it to the System-V init process, which has matured to the
point where we're even talking about dependency-aware parrallel startups
now?
There may be other, non-technical reasons for spawning processes using
init, but since your question implied one of a technical nature, I
reserved myself the privilege of being brutally honest. No offense meant.
Kind regards,
- --
Grega Bremec
gregab at p0f dot net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFEWNyYfu4IwuB3+XoRA1M+AJ91eOHbqGxaMi+GkEX1klz607Qx4wCfdWws
Rfkrr45xx9T3A4HASXF7D/k=
=OWLP
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390