LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2005, 01:55 PM   #1
cyberpunx
LQ Newbie
 
Registered: Jun 2005
Location: Sweden
Distribution: debian
Posts: 10

Rep: Reputation: 0
edited logrotation


Hi!
Done som tuning on my logrotation with the following tweaking. The problem is that I get the following error-messages when try to run the code below:

error: syslog :1 lines must begin with a keyword or a filename (possibly in dou ble quotes)
error: syslog :2 unexpected text
error: syslog :3 unexpected text
error: syslog rerotate or postrotate without endscript

And this is the code (in the file /etc/logrotate.d/syslog):


/var/log/auth.log \
/var/log/cron.log \
/var/log/daemon.log \
/var/log/kern.log \
/var/log/lpr.log \
/var/log/user.log \
/var/log/uucp.log {
weekly
sharedscripts
prerotate
chattr -a \
/var/log/auth.log \
/var/log/cron.log \
/var/log/daemon.log \
/var/log/kern.log \
/var/log/lpr.log \
/var/log/user.log \
/var/log/uucp.log
endscript
rotate 12
postrotate
/usr/bin/killall -HUP syslogd
chattr +a \
/var/log/auth.log \
/var/log/cron.log \
/var/log/daemon.log \
/var/log/kern.log \
/var/log/lpr.log \
/var/log/user.log \
/var/log/uucp.log
endscript
}


/var/log/critical.log \
/var/log/emergency.log \
/var/log/error.log \
/var/log/info.log {
daily
sharedscripts
prerotate
chattr -a \
/var/log/critical.log \
/var/log/emergency.log \
/var/log/error.log \
/var/log/info.log
endscript
rotate 7
postrotate
/usr/bin/killall -HUP syslogd
chattr +a \
/var/log/critical.log \
/var/log/emergency.log \
/var/log/error.log \
/var/log/info.log
endscript
}


/var/log/mail.log {
monthly
sharedscripts
prerotate
chattr -a \
/var/log/mail.log
endscript
rotate 12
postrotate
/usr/bin/killall -HUP syslogd
chattr +a \
/var/log/mail.log
endscript
}



Thanx in advance!!

Tommy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postgres+syslogng+logrotation problem emailssent Linux - General 8 04-11-2005 05:27 PM
logrotation doesn't working properly emailssent Linux - Networking 1 03-02-2005 10:54 AM
customizing Debian (deluser, logrotation, etc) markus1982 Linux - Distributions 0 05-25-2003 04:48 AM
logrotation cuss Linux - General 3 02-17-2003 01:18 PM
Edited times CragStar LQ Suggestions & Feedback 1 03-08-2001 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration