newsyslog-local.conf
alexus
alexus at gmail.com
Mon Feb 20 17:29:30 UTC 2012
s# newsyslog -n -v
Processing /etc/newsyslog.conf
Found: <include> /etc/newsyslog-local.conf
Processing /etc/newsyslog-local.conf
/var/log/all.log <7J>: does not exist, skipped.
/var/log/amd.log <7J>: does not exist, skipped.
/var/log/auth.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/console.log <5J>: does not exist, skipped.
/var/log/cron <3J>: size (Kb): 44 [100] --> skipping
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/kerberos.log <7J>: does not exist, skipped.
/var/log/lpd-errs <7J>: size (Kb): 4 [100] --> skipping
/var/log/maillog <7J>: --> will trim at Tue Feb 21 00:00:00 2012
/var/log/messages <5J>: size (Kb): 24 [100] --> skipping
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/pflog <3J>: does not exist, skipped.
/var/log/ppp.log <3J>: size (Kb): 4 [100] --> skipping
/var/log/security <10J>: size (Kb): 4 [100] --> skipping
/var/log/sendmail.st <10>: age (hr): 439 [168] --> trimming log....
rm -f /var/log/sendmail.st.10
rm -f /var/log/sendmail.st.10.gz
rm -f /var/log/sendmail.st.10.bz2
rm -f /var/log/sendmail.st.10.xz
rm -f /var/log/sendmail.st.9
rm -f /var/log/sendmail.st.9.gz
rm -f /var/log/sendmail.st.9.bz2
rm -f /var/log/sendmail.st.9.xz
mv /var/log/sendmail.st.3 /var/log/sendmail.st.4
chmod 640 /var/log/sendmail.st.4
mv /var/log/sendmail.st.2 /var/log/sendmail.st.3
chmod 640 /var/log/sendmail.st.3
mv /var/log/sendmail.st.1 /var/log/sendmail.st.2
chmod 640 /var/log/sendmail.st.2
mv /var/log/sendmail.st.0 /var/log/sendmail.st.1
chmod 640 /var/log/sendmail.st.1
ln /var/log/sendmail.st /var/log/sendmail.st.0
chmod 640 /var/log/sendmail.st.0
Start new log...
mktemp /var/log/sendmail.st.zXXXXXX
chmod 640 /var/log/sendmail.st.zXXXXXX
mv /var/log/sendmail.st.zXXXXXX /var/log/sendmail.st
newsyslog: pid file doesn't exist: /var/run/syslog.pid
/var/log/utx.log <3>: --> will trim at Thu Mar 1 05:00:00 2012
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/xferlog <7J>: size (Kb): 4 [100] --> skipping
/var/log/squid/access.log <7J>: --> will trim at Tue Feb 21 00:00:00 2012
/var/log/squid/cache.log <7J>: --> will trim at Tue Feb 21 00:00:00 2012
Signal all daemon process(es)...
sleep 10
s#
one thing that I noticed:
newsyslog: pid file doesn't exist: /var/run/syslog.pid
s# grep ^syslogd /etc/rc.conf
syslogd_enable="NO"
s#
does syslogd has be run for newsyslog to operate?
On Mon, Feb 20, 2012 at 12:24 PM, Matthew Seaman
<m.seaman at infracaninophile.co.uk> wrote:
> On 20/02/2012 17:04, alexus wrote:
>> s# tail -1 /etc/newsyslog.conf
>> <include> /etc/newsyslog-local.conf
>> s# cat /etc/newsyslog-local.conf
>> /var/log/squid/access.log squid:squid 640 7 * @T00 J
>> /var/run/squid/squid.pid
>> /var/log/squid/cache.log squid:squid 640 7 * @T00 J
>> s# ls -la /var/log/squid/
>> total 95672
>> drwxr-x--- 2 squid squid 512 Jan 13 04:23 .
>> drwxr-xr-x 3 root wheel 1024 Feb 6 00:00 ..
>> -rw-r----- 1 squid squid 97804783 Feb 20 16:32 access.log
>> -rw-r----- 1 squid squid 111481 Feb 20 16:29 cache.log
>> s#
>>
>> nothing gets rotated:( what am I doing wrong?
>>
>
> Hmmm... nothing leaps out at me as obviously wrong.
>
> What does running 'newsyslog -n -v' tell you?
>
> Cheers,
>
> Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
> Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
> JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
>
--
http://alexus.org/
More information about the freebsd-questions
mailing list