Koozali.org: home of the SME Server

Dansguardian - restart / refresh

AndyCocker

Dansguardian - restart / refresh
« on: March 31, 2006, 02:50:58 PM »
Hi,

I have a fresh install of SME7RC1. Did YUM update from server-manager.

I then installed Dansguardian:

http://mirror.contribs.org/smeserver//contribs/dungog/packages/smeserver/7.0/i386/RPMS.dungog/dansguardian-2.8.0.6-1.2.el4.rf.i386.rpm
http://mirror.contribs.org/smeserver//contribs/dungog/packages/smeserver/7.0/i386/RPMS.dungog/dungog-blacklists-0.1-12.noarch.rpm
http://mirror.contribs.org/smeserver//contribs/dungog/packages/smeserver/7.0/i386/RPMS.dungog/smeserver-dansguardian-1.2-4.noarch.rpm

with

Code: [Select]
yum install *.rpm

Everything seems to go to install fine, and dansguardian starts OK on reboot.

My question is this: When I make changes to dansguardian config files, how do I refresh dansguardian?

I have tried
Code: [Select]
dansguardian restart, but get this error:
Code: [Select]
Error binding server socket (is something else running on the filter port? [8080])
Exiting with error


I am forced to reboot in order for the changes I made to be enforced.

If I'm using the wrong command(s), please let me know. Otherwise I'll report it as a bug.

Andy

Offline byte

  • *
  • 2,183
  • +2/-0
Dansguardian - restart / refresh
« Reply #1 on: March 31, 2006, 02:57:03 PM »
You should be able to do...

/etc/rc7.d/S**dansguardian restart


Where ** is the 2 digit start number
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

AndyCocker

Dansguardian - restart / refresh
« Reply #2 on: March 31, 2006, 03:42:31 PM »
Quote from: "byte"
You should be able to do...

/etc/rc7.d/S**dansguardian restart


Where ** is the 2 digit start number

Byte,

Thanks for replying.

I tried
Code: [Select]
/etc/rc7.d/S91dansguardian restart

which indeed appears to restart dansguardian, but then I am no longer able to access any websites from my client machine... I get 'Page cannot be displayed'.. not dansguardian block page that I got previously.

Whilst a reboot fixes things once more, it's clearly not the best solution.

Do I need to restart any other services? I tried restarting
Code: [Select]
S86httpd-e-smith and
Code: [Select]
S86httpd-admin
but neither helped.

Andy

AndyCocker

Dansguardian - restart / refresh
« Reply #3 on: March 31, 2006, 06:10:54 PM »
Got it working,

BUT... it's strange.... it seems I have to restart dansguardian twice to get the changes to register!

At least this seems to now work.

Andy

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Dansguardian - restart / refresh
« Reply #4 on: April 01, 2006, 06:12:10 AM »
AndyCocker

[root@server7 ~]# /etc/init.d/dansguardian status
dansguardian (pid 3059 3058 3057 3056 3055 3054 3053 3051 3050 3049 3023) is running...

[root@server7 ~]# /etc/init.d/dansguardian restart
Shutting down Web Content Filter (dansguardian):           [  OK  ]
Starting Web Content Filter (dansguardian):                [  OK  ]


Most of the steps in my HOWTO are still apllicable to sme7.
Just use the newer rpms and there are now 2 basic config files to modify, search for a recent forum post about this.
Also see
http://mirror.contribs.org/smeserver//contribs/rmitchell/smeserver/howto/dansguardian%20instal%20&%20configure%20HOWTO%20for%20sme%20server.htm
...

AndyCocker

Dansguardian - restart / refresh
« Reply #5 on: April 02, 2006, 12:27:01 AM »
RayMitchell,

Many thanks for the info.

All the best,

Andy Cocker