Koozali.org: home of the SME Server

Dansguardian service will not work at startup

bjarni

Dansguardian service will not work at startup
« on: July 28, 2005, 03:27:28 PM »
Hi

I have installed dansguadian long time ago, following Ray Mitchell's HowTo.

But I never got it to startup at boot. Everytime I boot I have to statup dansguadian manually from the prompt!!!

in the ยด/var/log/boot.log.* I found the following lines from my last boot:

Jul 27 16:01:26 sme-server dansguardian: Starting dansguardian:
Jul 27 16:01:28 sme-server dansguardian: ^[[60G[ ^[[1;31mFAILED^[[0;39m ]
Jul 27 16:01:28 sme-server rc: Starting dansguardian:  succeeded

But still I have to write '\etc\init.d\dansguardian restart' before it will work!

Here is my link in rc7.d:
lrwxrwxrwx    1 root     root           32 Sep 27  2004 S92dansguardian -> /etc/rc.d/init.d/e-smith-service

Any suggestions?

/bjarni

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Dansguardian service will not work at startup
« Reply #1 on: July 29, 2005, 01:41:30 AM »
bjarni

> I have installed dansguadian long time ago, following Ray Mitchell's HowTo.

Check the most recent HOWTO for the correct link to enter
...

bjarni

Re: Dansguardian service will not work at startup
« Reply #2 on: July 29, 2005, 09:43:13 AM »
Ray,

>Check the most recent HOWTO for the correct link to enter[/quote]

Is this the HOWTO:

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/dansguardian%20instal%20&%20configure%20HOWTO%20for%20sme%20server.htm

Then I did as described in 'Enabling the Dansguardian service at startup':

/sbin/e-smith/config set dansguardian service Initscriptorder 92 status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S92dansguardian

But it still doesn't start at boot-time!

I tried after a boot to go to the /etc/rc7.d directory and manually type:

./S92dansguardian
reply: 'Usage: /etc/rc.d/init.d/dansguardian {start|stop|restart|status}'

Then I typed:

./S92dansguadian status
reply: 'No DansGuardian process found.'

And:

.*S92dansguardian start
reply: 'Starting dansguardian:                                     [ OK ]'

What am I doing wrong, since it doesn't start at boot-time?

This is my installed package: 'DansGuardian-2.6.1-3.RH72'

/bjarni

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Dansguardian service will not work at startup
« Reply #3 on: July 29, 2005, 10:16:33 AM »
bjarni

> What am I doing wrong, since it doesn't start at boot-time?

Check dansguardian packages are really installed

rpm -q DansGuardian dungog-dansguardian-blacklists

I get
DansGuardian-2.6.1-3.RH72
dungog-dansguardian-blacklists-0.1-9


Check the settings

/sbin/e-smith/db configuration show dansguardian

I get
dansguardian=service
    Initscriptorder=92
    status=enabled


cd /etc/rc7.d
ls -al

Amongst many others I get
lrwxrwxrwx    1 root     root           32 Dec  7  2004 S92dansguardian -> /etc/rc.d/init.d/e-smith-service


Can you start dansguardian manually ?

/etc/init.d/dansguardian start
...

bjarni

Re: Dansguardian service will not work at startup
« Reply #4 on: July 29, 2005, 10:33:56 AM »
>Check dansguardian packages are really installed
>
>rpm -q DansGuardian dungog-dansguardian-blacklists
>
>I get
>DansGuardian-2.6.1-3.RH72
>dungog-dansguardian-blacklists-0.1-9
I get the same:
DansGuardian-2.6.1-3.RH72
dungog-dansguardian-blacklists-0.1-9

>Check the settings
>
>/sbin/e-smith/db configuration show dansguardian
>
>I get
>dansguardian=service
>    Initscriptorder=92
>    status=enabled
I get the same:
dansguardian=service
    Initscriptorder=92
    status=enabled


>cd /etc/rc7.d
>ls -al
>
>Amongst many others I get
>lrwxrwxrwx    1 root     root           32 Dec  7  >2004 S92dansguardian -> /etc/rc.d/init.d/e-smith-service
I get the same:
lrwxrwxrwx    1 root     root           32 Jul 29 09:37 S92dansguardian -> /etc/rc.d/init.d/e-smith-service

>Can you start dansguardian manually ?
>
>/etc/init.d/dansguardian start
YES

The only error I can find is in the /var/log/boot.log.* file where I get these lines:
Jul 27 16:01:26 sme-server dansguardian: Starting dansguardian:
Jul 27 16:01:28 sme-server dansguardian: ^[[60G[ ^[[1;31mFAILED^[[0;39m ]
Jul 27 16:01:28 sme-server rc: Starting dansguardian: succeeded

/bjarni