Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154895701
D18013.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
D18013.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18013: Add warning to rc script of files not included by default newsyslog.conf
Attached
Detach File
Event Timeline
Log In to Comment