Penguin

Differences between version 5 and predecessor to the previous major change of DansGuardian.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 5 Last edited on Friday, June 13, 2003 3:38:27 pm by DanielLawson Revert
Older page: version 4 Last edited on Friday, June 13, 2003 3:04:16 pm by CraigBox Revert
@@ -4,8 +4,10 @@
  
 ----- 
  
 !My DansGuardian is dying at 6:45 every morning 
+  
+Chances are pretty good its failing during morning maintenance. The logrotate script is the one to blame here, and dansguardians poor ability to restart cleanly and quickly. I modified my logrotate.d script (this is under debian, might be different in different distros) by doing the following.  
  
  cat > /etc/logrotate.d/dansguardian << EOF 
  /var/log/dansguardian/access.log { 
  rotate 31 
@@ -18,4 +20,6 @@
  (sleep 2; /etc/init.d/dansguardian start) 
  endscript 
 
  EOF 
+  
+This just adds in a sleep and a second attempt to restart dansguardian if the first fails ( the || will execute only if the output from the inid script is a fail code)