Hi, I am using FreeBSD 13.0-RELEASE-p2.
Recently I switched from syslogd(8) to sysutils/rsyslog.
This is my rc.conf:
I noticed that every day, at midnight, I get a mail with:
If I understand correctly, such email is generated by newsyslog(8), due to this:
Since my newsyslog.conf(5) has such lines:
should I assume that every log is handled by newsyslog(8), and then I need to insert in /pid_file the rsyslog's pid filename?
Thank you
Recently I switched from syslogd(8) to sysutils/rsyslog.
This is my rc.conf:
Code:
..
..
syslogd_enable="NO"
rsyslogd_enable="YES"
I noticed that every day, at midnight, I get a mail with:
Code:
newsyslog: pid file doesn't exist: /var/run/syslog.pid
If I understand correctly, such email is generated by newsyslog(8), due to this:
Code:
# less /etc/newsyslog.conf
# configuration file for newsyslog
# $FreeBSD$
#
# Entries which do not specify the '/pid_file' field will cause the
# syslogd process to be signalled when that log file is rotated. This
# action is only appropriate for log files which are written to by the
# syslogd process (ie, files listed in /etc/syslog.conf). If there
# is no process which needs to be signalled when a given log file is
# rotated, then the entry for that file should include the 'N' flag.
Since my newsyslog.conf(5) has such lines:
Code:
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/var/log/all.log 600 7 * @T00 J
/var/log/auth.log 600 7 1000 @0101T JC
/var/log/console.log 600 5 1000 * J
/var/log/cron 600 3 1000 * JC
/var/log/daily.log 640 7 * @T00 JN
/var/log/debug.log 600 7 1000 * JC
/var/log/init.log 644 3 1000 * J
/var/log/kerberos.log 600 7 1000 * J
/var/log/maillog 640 7 * @T00 JC
/var/log/messages 644 5 1000 @0101T JC
/var/log/monthly.log 640 12 * $M1D0 JN
/var/log/devd.log 644 3 1000 * JC
/var/log/security 600 10 1000 * JC
/var/log/utx.log 644 3 * @01T05 B
/var/log/weekly.log 640 5 * $W6D0 JN
/var/log/daemon.log 644 5 1000 @0101T JC
should I assume that every log is handled by newsyslog(8), and then I need to insert in /pid_file the rsyslog's pid filename?
Thank you