summaryrefslogtreecommitdiffstats
path: root/etc/rc.subr
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-11-09 17:34:21 +0000
committergordon <gordon@FreeBSD.org>2002-11-09 17:34:21 +0000
commitbbfee3a58a02e6585d576f452904cff9c7252c8d (patch)
treea59d2be412d550a51a82d07c6e53c01f7e523032 /etc/rc.subr
parent444a5dbae820ca21732f4519b447385bd980d1a8 (diff)
downloadFreeBSD-src-bbfee3a58a02e6585d576f452904cff9c7252c8d.zip
FreeBSD-src-bbfee3a58a02e6585d576f452904cff9c7252c8d.tar.gz
By popular demand, make the debug log to syslog.
Remove an extraneous return too.
Diffstat (limited to 'etc/rc.subr')
-rw-r--r--etc/rc.subr4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index ed69e4e..d041cf9 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -900,8 +900,10 @@ debug()
{
case ${rc_debug} in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
+ if [ -x /usr/bin/logger ]; then
+ logger "$0: INFO: $*"
+ fi
echo 1>&2 "$0: DEBUG: $*"
- return
;;
esac
}
OpenPOWER on IntegriCloud