nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

logrotate not working

This is a discussion on logrotate not working within the Web servers forums, part of the Mastering Servers category; I followed the tutorial and this is what my /etc/logrotate.d/lighttpd Code: /var/log/lighttpd/*.log /var/log/lighttpd/mydomain.com/*.log /var/log/lighttpd/forums.mydomain.com/*.log { missingok copytruncate rotate 7 compress ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-07-2007, 07:07 AM
Junior Member
User
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
muks
Default logrotate not working

I followed the tutorial and this is what my /etc/logrotate.d/lighttpd

Code:
/var/log/lighttpd/*.log /var/log/lighttpd/mydomain.com/*.log /var/log/lighttpd/forums.mydomain.com/*.log {
	missingok
	copytruncate
	rotate 7
	compress
	notifempty
	sharedscripts
	postrotate
		/etc/init.d/lighttpd reload
	endscript
}
anything wrong with my setting?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-07-2007, 08:30 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 919
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

It should be as follows with double quotes :

Code:
"/var/log/lighttpd/*.log" "/var/log/lighttpd/mydomain.com/*.log" "/var/log/lighttpd/forums.mydomain.com/*.log" {
   missingok
   copytruncate
   rotate 7
   compress
   notifempty
   sharedscripts
   postrotate
      /etc/init.d/lighttpd reload
   endscript
}
Follow the rest of info given in tutorial. Let me know...
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 03-17-2007, 04:50 AM
Junior Member
User
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
muks
Default

I'll try it

Thanks for your help
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Bash not working! Mwalimugini Getting started tutorials 4 03-24-2008 09:52 PM
Samba Server not working vaibhav.kanchan Getting started tutorials 2 01-08-2008 06:14 PM
Spamassassin URI rule not working properly diptanjan Mail Servers 2 06-26-2007 11:11 AM
Is NTP Working? illtestu Linux software 1 05-22-2006 10:36 PM
iptables bittorrent not working Linux software 2 01-25-2006 07:52 PM


All times are GMT +5.5. The time now is 11:16 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36