summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2013-07-01 21:20:17 +0000
committerasomers <asomers@FreeBSD.org>2013-07-01 21:20:17 +0000
commit16596db60f50f7a2f26b1e45158d41df037b88c3 (patch)
treedb9956931565a38f4483632ae194fa9479dd907e /etc
parentc646da3daf521a7bfe3e2d3ea2851f17b5923b11 (diff)
downloadFreeBSD-src-16596db60f50f7a2f26b1e45158d41df037b88c3.zip
FreeBSD-src-16596db60f50f7a2f26b1e45158d41df037b88c3.tar.gz
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)
Diffstat (limited to 'etc')
-rw-r--r--etc/newsyslog.conf1
-rw-r--r--etc/syslog.conf4
2 files changed, 5 insertions, 0 deletions
diff --git a/etc/newsyslog.conf b/etc/newsyslog.conf
index 76e0707..9572f84 100644
--- a/etc/newsyslog.conf
+++ b/etc/newsyslog.conf
@@ -32,6 +32,7 @@
/var/log/monthly.log 640 12 * $M1D0 JN
/var/log/pflog 600 3 100 * JB /var/run/pflogd.pid
/var/log/ppp.log root:network 640 3 100 * JC
+/var/log/devd.log 644 3 100 * JC
/var/log/security 600 10 100 * JC
/var/log/sendmail.st 640 10 * 168 BN
/var/log/utx.log 644 3 * @01T05 B
diff --git a/etc/syslog.conf b/etc/syslog.conf
index 242d27a..702bd66 100644
--- a/etc/syslog.conf
+++ b/etc/syslog.conf
@@ -13,6 +13,7 @@ mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
ftp.info /var/log/xferlog
cron.* /var/log/cron
+!-devd
*.=debug /var/log/debug.log
*.emerg *
# uncomment this to log all writes to /dev/console to /var/log/console.log
@@ -27,6 +28,9 @@ cron.* /var/log/cron
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
+# Uncomment this if you wish to see messages produced by devd
+# !devd
+# *.>=info /var/log/devd.log
!ppp
*.* /var/log/ppp.log
!*
OpenPOWER on IntegriCloud