How do I install my own service
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?
thanks
Signature · 13 lines
Linux User Registered #232544
ICQ : 337889406
GnuPG-key : www.keyserver.net
-------------------------------
"Software is like sex,
it's better when it's free."
[Linus Torvalds]
-
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/faqsQuoted 12 lines · Ramzez
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 ...
Quoted 1 line
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