Running syslong-ng from init?
syslog-ng seems to die on me from time to time. (I whish I had more info on why to share with you, but there doesn't seem to be anyting in the logs). I'd like to run syslog-ng out of init, but I can't seem to find a way to keep it from fork()-ing. Could anyone offer some advice? Thanks, -Jon ------------------------------------------------------------------------ This message is for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email is prohibited. -----------------------------------------------------------------------!
On Fri, May 16, 2003 at 07:08:02AM -0400, Jonathon Ross wrote:
syslog-ng seems to die on me from time to time. (I whish I had more info on why to share with you, but there doesn't seem to be anyting in the logs).
maybe you could enable core files (using ulimic -c unlimited) and then create a backtrace using gdb syslog-ng -c /path/to/core (gdb) bt
I'd like to run syslog-ng out of init, but I can't seem to find a way to keep it from fork()-ing.
Could anyone offer some advice?
-F does the trick to avoid forking. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Jonathon Ross (jross@island.com) said : Re: [syslog-ng]Running syslong-ng from init?
syslog-ng seems to die on me from time to time. (I whish I had more info on why to share with you, but there doesn't seem to be anyting in the logs).
I'd like to run syslog-ng out of init, but I can't seem to find a way to keep it from fork()-ing.
Could anyone offer some advice?
Thanks, -Jon
There was a foreground hack for syslog-ng. But you can use daemontools to make sure it keeps running: http://cr.yp.to/daemontools.html Because syslog-ng goes into the background you need to use fghack (comes with daemontools). Otherwise it'll keep starting syslog-ng processes until you're machine falls over. The /service/syslog-ng/run file would be something like: #!/bin/sh exec fghack /usr/local/sbin/syslog-ng -f /usr/local/etc/syslog-ng.conf Works for us anyway. Cheers, Geoff
participants (3)
-
Balazs Scheidler
-
Geoff Wright
-
Jonathon Ross