At 10:43 PM 12/2/2003 -0500, Ramzez wrote:
HI friends...

please, how can I install my own service (i'm using RH9.0).

  I make my script in /etc/rc.d/init.d ... something like this:
-------------------------- killMyTemp -----------------------
        #!/bin/sh
        rm -rf /home/FamilyGroup/tmp/*
--------------------------
  then I make a soft-link in /etc/rc.d/rc5.d ...
  again, something like: ln -s ../init.d/killMyTemp K99killMyTemp ...

But when I turn-off my PC, this script didn't run; why?


Assuming that by "turn-off" you mean run the "shutdown" or "halt" command ... it does not run because shutdown is runlevel 6, not runlevel 5 (or at least it is on every Linux system I've ever used ... I haven't used RH in a very long time, though). If you look in (probably - I don't know RH's organization) /etc/rc.d/rc6.d/, you will see the symlinks for the init scripts that run as part of shutdown.






- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to