Koozali.org: home of the SME Server

Disappearing script in rc7.d

laurie_lewis

Disappearing script in rc7.d
« 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

Offline raem

  • *
  • 3,972
  • +4/-0
Disappearing script in rc7.d
« Reply #1 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
...

laurie_lewis

Disappearing script in rc7.d
« Reply #2 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

Offline jackl

  • ****
  • 136
  • +0/-0
Disappearing script in rc7.d
« Reply #3 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
......

laurie_lewis

Disappearing script in rc7.d
« Reply #4 on: May 01, 2005, 02:40:13 PM »
thank you my friends,

works a treat.

laurie