Page MenuHomeFreeBSD

D18013.diff
No OneTemporary

D18013.diff

Index: libexec/rc/rc.d/newsyslog
===================================================================
--- libexec/rc/rc.d/newsyslog
+++ libexec/rc/rc.d/newsyslog
@@ -14,7 +14,23 @@
required_files="/etc/newsyslog.conf"
command="/usr/sbin/${name}"
start_cmd="newsyslog_start"
+start_precmd="newsyslog_prestart"
stop_cmd=":"
+
+newsyslog_prestart()
+{
+ excludedfiles=$( find -E /etc/newsyslog.conf.d/ /usr/local/etc/newsyslog.conf.d/ \
+ \( -type f \) -and \
+ \( -name ".*" -or -not -name "*.conf" \) -and \
+ -not \( -regex ".*\.(sample|bak|orig|rej)" \) )
+ if [ -n "${excludedfiles}" ]; then
+ echo "********************** WARNING from newsyslog(8) **********************"
+ echo "The following files start with '.' or do not end with '.conf'"
+ echo "and therefore will not be included by the default newsyslog.conf(5):"
+ echo "${excludedfiles}"
+ echo "***********************************************************************"
+ fi
+}
newsyslog_start()
{

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 30, 8:42 PM (10 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32541052
Default Alt Text
D18013.diff (974 B)

Event Timeline