On Thu, Jul 01, 2004 at 02:46:06PM -0500, Will Trillich wrote:
| On Wed, Jun 30 at 06:25PM -0400, Derrick 'dman' Hudson wrote:
| > On Wed, Jun 30, 2004 at 04:34:06PM -0500, Will Trillich wrote:
| > | problem: xinetd, after working just fine and dandy for weeks at
| > |   a time, gets dozens of "unexpected signal" (source unknown)
| > |   and gives up the ghost.
| > | 
| > | questions:
| > |   1) what's the best way (e.g. debian way) to monitor active
| > |      daemons and restart them when necessary? maybe some
| > |      utility already exists for this? or /proc/something?
| > |      or `ps ax`?
| > 
| > restartd.
| 
| aha. not available for woody, but it's available for sarge...
| 
| the logging is odd (stdout, even with /etc/init.d/restartd
| restart?

Really?  I don't know, I haven't actually used it in a while.  ISTR it
reporting to some log file, though.

| is this thing finished?)

No software is ever finished ;-).  It may not be mature, though.

[...]

| descriptors 0, 1, 2 are pts/0! for a daemon?

| plus, whatever it does restart (according to configs, of course)
| winds up with file descriptors open to /var/run/restartd...

File a bug report, and even a patch!  :-)

You're right that a deamon shouldn't have stdin/stdout/stderr open,
and the child process ought not to inherit any file descriptors.
Fortunately the child, in this case, is probably just a small shell
script to restart a daemon, and that daemon will be better behaved and
not leave the descriptors open.

| thanks for the pointer!

You're welcome.

-D

-- 
After you install Microsoft Windows XP, you have the option to create
user accounts.  If you create user accounts, by default, they will have
an account type of administrator with no password.
                                                            -- bugtraq
 
www: http://dman13.dyndns.org/~dman/            jabber: [EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to