Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: laurie_lewis on April 30, 2005, 10:30:54 AM

Title: Disappearing script in rc7.d
Post by: laurie_lewis on April 30, 2005, 10:30:54 AM
I have been putting a script file in /etc/rc7.d to autostart twonkyvision mediaserver on boot.  

I am unable to determine why but it keeps on disappearing - I can see no pattern as to why this is happening either.

I have not used chkconfig to add it as it will not let me put it in level 7.

Any help appreciated.

Laurie Lewis
Title: Disappearing script in rc7.d
Post by: raem on April 30, 2005, 11:14:35 AM
Perhaps this excerpt from DG howto may steer you in the right direction:

Enabling the Dansguardian service at startup

You need the following entry in the sme configuration database /home/e-smith/configuration

dansguardian=service|InitscriptOrder|92|status|enabled

To add this do

/sbin/e-smith/config set dansguardian service Initscriptorder 92 status enabled

You will also need to add a link in /etc/rc7.d

To add this do

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S92dansguardian
Title: Disappearing script in rc7.d
Post by: laurie_lewis on April 30, 2005, 03:14:29 PM
Thanks Ray,

Will try it with a reinstall of 6.5rc1

I see that your name comes up a lot with Dansguardian.  I am having a few problems but will post again with questions

Laurie
Title: Disappearing script in rc7.d
Post by: jackl on April 30, 2005, 08:07:40 PM
Laurie,
 
You would normally only put a symlink in rc7.d not the actual script, most scripts would reside in init.d. as you can see from Ray's example of dansguardian.
Check that the start script for twonkyvision is init.d and then do as Ray has shown, replacing dansguardian with the name of the startup script for twonkyvision. The number 92 only determines the load order of links in rc.d the highest being the last to load.

Regards

Jack
Title: Disappearing script in rc7.d
Post by: laurie_lewis on May 01, 2005, 02:40:13 PM
thank you my friends,

works a treat.

laurie