ClearFoundation Tracker - ClearOS
View Issue Details
0011191ClearOSapp-content-filter - Content Filterpublic2016-11-08 11:532016-12-16 14:04
bchambers 
user2 
normalminorhave not tried
closedfixed 
7.2.0 
7.3.0 Beta 17.3.0 Beta 1 
0011191: DG not restarting on config change
Did something change?

filewatch-content-filter-configuration.conf

uses 'reload' action:

<action>sudo /sbin/service dansguardian-av reload</action>

But reload for DG isn't supported:

# sudo /sbin/service dansguardian-av reload
Redirecting to /bin/systemctl reload dansguardian-av.service
Failed to reload dansguardian-av.service: Job type reload is not applicable for unit dansguardian-av.service.

Should this be restart?

# sudo /sbin/service dansguardian-av restart
Redirecting to /bin/systemctl restart dansguardian-av.service


No tags attached.
Issue History
2016-11-08 11:53bchambersNew Issue
2016-11-08 14:51user2Note Added: 0004111
2016-11-08 14:51user2Statusnew => confirmed
2016-11-30 10:35user2Target Version => 7.3.0 Beta 1
2016-12-09 08:34user2Statusconfirmed => resolved
2016-12-09 08:34user2Fixed in Version => 7.3.0 Beta 1
2016-12-09 08:34user2Resolutionopen => fixed
2016-12-09 08:34user2Assigned To => user2
2016-12-16 14:04user2Statusresolved => closed

Notes
(0004111)
user2   
2016-11-08 14:51   
The Content Filter UI should be handling all the post-configuration restarts and it looks like that the case most (in not all) of the time, e.g. "grep reset controllers/*php"

banned_ips.php: $this->dansguardian->reset(TRUE);
banned_ips.php: $this->dansguardian->reset(TRUE);
blacklists.php: $this->dansguardian->reset(TRUE);
exception_ips.php: $this->dansguardian->reset(TRUE);
exception_ips.php: $this->dansguardian->reset(TRUE);
exception_sites.php: $this->dansguardian->reset(TRUE);
exception_sites.php: $this->dansguardian->reset(TRUE);
file_extensions.php: $this->dansguardian->reset(TRUE);
general.php: $this->dansguardian->reset(TRUE);
gray_sites.php: $this->dansguardian->reset(TRUE);
gray_sites.php: $this->dansguardian->reset(TRUE);
mime_types.php: $this->dansguardian->reset(TRUE);
phrase_lists.php: $this->dansguardian->reset(TRUE);
policy.php: $this->dansguardian->reset(TRUE);
policy.php: $this->dansguardian->reset(TRUE);
policy.php: $this->dansguardian->reset(TRUE);
settings.php: $this->dansguardian->reset(TRUE);


The clearsync configlet file should be removed after doing a review to make sure all config changes via webconfig trigger a restart.