Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 2015 19:45:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197379] Add an option to run `syslogd' in the foreground
Message-ID:  <bug-197379-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197379

            Bug ID: 197379
           Summary: Add an option to run `syslogd' in the foreground
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: rpokala@panasas.com

Created attachment 152635
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=152635&action=edit
Add a '-F' option to make `syslogd' run in the foreground

There is a narrow window while `syslogd' is restarting (such as when getting
restarted by `newsyslog') wherein it might die, without cleaning up its PID
file. (syslogd.c:waitdaemon() - if fork() fails, waitdaemon() calls errx(), and
thus never returns. pidfile_remove() only gets called if waitdaemon() returns a
negative value.)

For this and other reasons, we've modified `syslogd' to run in the foreground,
so a nanny process can immediately detect it exiting and restart it if needed.
The attached patch adds a '-F' command-line argument to make `syslogd' run in
foreground mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197379-8>