Add syslog(3) support to devd(8).
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Jul 2013 21:20:17 +0000 (21:20 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Jul 2013 21:20:17 +0000 (21:20 +0000)
commit35dc19de6478aa92d06bd5446d81f7eb2f390b0c
treedb9956931565a38f4483632ae194fa9479dd907e
parent3aff8d630bd63fb1e3c6617955ff1140949609eb
Add syslog(3) support to devd(8).

sbin/devd/devd.cc
        All output will now go to syslog(3) if devd is daemonized, or stderr
        if it's running in the foreground.

sbin/devd/devd.8
        Remove the "-D" flag.  Filtering messages by priority now
happens in the usual syslog way.  For performance reasons, a few
extra-verbose debugging statements are now conditional on the "-d" (do
not daemonize) flag.

etc/syslog.conf
etc/newsyslog.conf
        Direct messages from devd(8) to /var/log/devd.log, but leave it
        disabled by default

Reviewed by: eadler
Approved by: gibbs (co-mentor)
MFC after: never (removed a command-line option from devd)

git-svn-id: svn://svn.freebsd.org/base/head@252481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/newsyslog.conf
etc/syslog.conf
sbin/devd/devd.8
sbin/devd/devd.cc