SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0004452: monit does not restart dansguardian correctly - MantisBT Endian Bugtracker
Endian Issue Tracker

Please see now our new Bugtracker system: JIRA

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004452Endian FirewallOther Servicespublic2012-09-25 08:532012-12-24 16:29
Assigned To 
PlatformOSOS Version
Product Version2.5 
Target VersionFixed in Version 
Summary0004452: monit does not restart dansguardian correctly
DescriptionHi guys
if you restart dansguardian using "monit restart dansguardian", this procedure fails
8/10 times. The same problem occur if you change the content filter confguration from gui and then press apply button,when jobsengine tells to monit to restart the service you can see that 9999 port is used by dansguardian and if you run "ps aux |grep dansguardian" you can see the dansguardian processes,but in /var/run the file is empty!
Monit checks that file to verify if dansguardian is running or not and if that file is empty monit thinks that the process is dead and runs only the start process and not the stop,so until you don't kill all the DansGuardian processes and delete /var/run/ file, monit is unable to start dansguardian service.This problem occur on 2.5 macro and 2.5 intel
Attached Files? file icon monit_dg [^] (4,505 bytes) 2012-09-25 08:54 [Show Content]

- Relationships

-  Notes
luke-endian (developer)
2012-09-25 08:56

We've found a workaround:
in /etc/monit.d/dansguardian.conf
change the start parameter with:
 start program = "/bin/bash -c 'rm /var/run/; killall -9 dansguardian; /etc/init.d/dansguardian start'"
daniele-endian (developer)
2012-12-18 15:37

this is became a major issue

- Issue History
Date Modified Username Field Change
2012-09-25 08:53 luke-endian New Issue
2012-09-25 08:53 luke-endian Tag Attached: purple
2012-09-25 08:54 luke-endian File Added: monit_dg
2012-09-25 08:56 luke-endian Note Added: 0008197
2012-12-18 15:37 daniele-endian Note Added: 0008354

Copyright © 2005-2008 Endian, SRL. All rights reserved.

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker