Penguin

Differences between current version and previous revision of DansGuardian.

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

Newer page: version 14 Last edited on Sunday, April 24, 2005 4:01:35 pm by CraigBox
Older page: version 13 Last edited on Sunday, April 24, 2005 3:32:57 pm by NoName Revert
@@ -1,23 +1,23 @@
 [DansGuardian | http://dansguardian.org/] is a WebProxy with phrase based filtering, useful for schools or other institutions which can't afford to have children viewing pornography. It is [GPL]ed, but uses a weird scheme placing restrictions on the permission to download it for commercial users. 
  
 !! Notes 
  
-! My DansGuardian is dying at 6:45 every single morning, it makes me vomit!  
+! My DansGuardian is dying at 6:45 every morning 
  
-Chances are pretty good (54%) that it is failing during morning maintenance. The logrotate script is the one to blame here, and DansGuardian's poor ability to restart cleanly and quickly. I modified my __logrotate.d__ script (this is under [Debian] and might differ from other [LinuxDistribution]s) by doing the following: 
+Chances are pretty good that it is failing during morning maintenance. The logrotate script is the one to blame here, and DansGuardian's poor ability to restart cleanly and quickly. I modified my __logrotate.d__ script (this is under [Debian] and might differ from other [LinuxDistribution]s) by doing the following: 
  
  cat > /etc/logrotate.d/dansguardian << EOF 
  /var/log/dansguardian/access.log { 
  rotate 31 
  daily 
  prerotate 
- /etc/init.d/dansguardian stop | || true 
+ /etc/init.d/dansguardian stop || true 
  endscript 
  postrotate 
- sleep 2 && /etc/init.d/dansguardian start | || \ 
+ sleep 2 && /etc/init.d/dansguardian start || \ 
  (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 if, and ONLY if the output from the init script is a fail code, which makes me sleep better during the day I might add ). 
+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 init script is a fail code).