Hello.
Newsyslog not started.
My system FreeBSD 13.2-RELEASE-p5 amd64.
The system has just been installed.
Or does newsyslog run on its own once a day?
/etc/crontab
Newsyslog not started.
My system FreeBSD 13.2-RELEASE-p5 amd64.
The system has just been installed.
Code:
# /etc/rc.d/newsyslog start
Creating and/or trimming log files.
Code:
# ps aux | grep log
root 37558 0,0 0,0 12836 1840 - IsJ чт10 0:00,52 /usr/sbin/syslogd -s
root 87421 0,0 0,0 12812 2188 0 S+J 11:34 0:00,00 grep log
Code:
# newsyslog -v
Processing /etc/newsyslog.conf
Found: <include> /etc/newsyslog.conf.d/[!.]*.conf
Found: <include> /usr/local/etc/newsyslog.conf.d/[!.]*.conf
Processing /etc/newsyslog.conf.d/ftp.conf
Processing /etc/newsyslog.conf.d/lpr.conf
Processing /etc/newsyslog.conf.d/opensm.conf
Processing /etc/newsyslog.conf.d/pf.conf
Processing /etc/newsyslog.conf.d/ppp.conf
Processing /etc/newsyslog.conf.d/sendmail.conf
Processing /usr/local/etc/newsyslog.conf.d/acme.sh.conf
/var/log/all.log <7J>: does not exist, skipped.
/var/log/auth.log <7J>: --> will trim at Mon Jan 1 00:00:00 2024
/var/log/console.log <5J>: does not exist, skipped.
/var/log/cron <3J>: size (Kb): 177 [1000] --> skipping
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <7J>: size (Kb): 1 [1000] --> skipping
/var/log/init.log <3J>: does not exist, skipped.
/var/log/kerberos.log <7J>: does not exist, skipped.
/var/log/maillog <7J>: --> will trim at Mon Dec 11 00:00:00 2023
/var/log/messages <5J>: --> will trim at Mon Jan 1 00:00:00 2024
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/devd.log <3J>: size (Kb): 1 [1000] --> skipping
/var/log/security <10J>: size (Kb): 1 [1000] --> skipping
/var/log/utx.log <3>: --> will trim at Mon Jan 1 05:00:00 2024
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/daemon.log <5J>: --> will trim at Mon Jan 1 00:00:00 2024
/var/log/xferlog <7J>: size (Kb): 1 [1000] --> skipping
/var/log/lpd-errs <7J>: size (Kb): 1 [1000] --> skipping
/var/log/opensm.log <7J>: does not exist, skipped.
/var/log/pflog <3J>: does not exist, skipped.
/var/log/ppp.log <3J>: size (Kb): 1 [1000] --> skipping
/var/log/sendmail.st <10>: age (hr): 112 [168] --> skipping
/var/log/acme.log <7>: --> will trim at Mon Dec 11 00:00:00 2023
/etc/crontab
Code:
# Rotate log files every hour, if necessary.
0 * * * * root newsyslog
Last edited by a moderator: