Re: newsyslog

From: Hellmuth Michaelis <hm(at)hcs.de>
Date: Tue, 26 Oct 1999 13:56:49 +0200 (METDST)

>From the keyboard of Matthias Teege:

> Kann ich die Datei isdnd.acct bei laufendem ISDN Deamon
> rotieren?

Ja.

man isdnd:

     Sending a USR1 signal to isdnd causes the accounting file and the logfile
     (if logging to a file is used instead of logging via the syslog(3) facil-
     ity) to be closed and reopened to make logfile rotation possible.

Wenn Du syslog-logging benutzt, dann in etwa:

cd /var/log
echo ""
echo "Sending isdnd accounting log root, Subject: Weekly ISDN Charges"
/usr/local/bin/isdnd_acct | mail -s "Weekly ISDN Charges" root
cp /dev/null isdnd.acct
chmod 644 isdnd.acct
echo ""
echo "Restarting syslogd"
kill -1 `cat /var/run/syslog.pid`

hellmuth

-- 
Hellmuth Michaelis                                    Tel   +49 40 559747-70
HCS Hanseatischer Computerservice GmbH                Fax   +49 40 559747-77
Oldesloer Strasse 97-99                               Mail  hm [at] hcs.de
22457 Hamburg                                         WWW   http://www.hcs.de
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Tue 26 Oct 1999 - 13:57:25 CEST

search this site