* How do I install my own service
@ 2003-12-03 3:43 Ramzez
2003-12-03 6:07 ` Ray Olszewski
0 siblings, 1 reply; 2+ messages in thread
From: Ramzez @ 2003-12-03 3:43 UTC (permalink / raw)
To: linux-newbie
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
--
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do I install my own service
2003-12-03 3:43 How do I install my own service Ramzez
@ 2003-12-03 6:07 ` Ray Olszewski
0 siblings, 0 replies; 2+ messages in thread
From: Ray Olszewski @ 2003-12-03 6:07 UTC (permalink / raw)
To: linux-newbie
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-03 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 3:43 How do I install my own service Ramzez
2003-12-03 6:07 ` Ray Olszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox