LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   SysV Init (https://www.linuxquestions.org/questions/linux-distributions-5/sysv-init-244310/)

predator.hawk 10-18-2004 03:38 PM

SysV Init
 
Right now i'm trying to build an installer for my firewall, yet because I don't use SysV Init i can't set it up to work on SysV init systems. I'd like to Know what i have to do to start a script at boot time on Mandrake and Fedora.

~predator.hawk

vrln 10-21-2004 10:10 AM

as far as I know:

The init scripts themselves are in /etc/init.d. The scripts which run at each runlevel are in /etc/rcX.d (replace X with the runlevel number). For example if you go to /etc/rc3.d you will find symlinks like SXX.firewall (or KXX.firewall) which points at /etc/init.d/firewall (replace XX with 2 numbers). S means start and K kill, so for example the shutdown runlevel would have lots of KXX.something symlinks, and the default runlevel would have lots of SXX.something symlinks. The XX number tells in which order the script will run.

(note: I´m no sysv init expert so I might be wrong, if I am, someone please correct me)

predator.hawk 10-21-2004 07:41 PM

Thanks, I can at least write out a guide for systems that way :).


All times are GMT -5. The time now is 10:26 PM.