[SOLVED] What will happens if i put scripts inside /etc/init.d ?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The init.d directory (in Slackware, "/etc/init.d" is a symlink to "/etc/rc.d/init.d") has nothing to do with "/etc/inittab".
If you add scripts to init.d they will have to be called with a "start" or "stop" parameter by start- and kill commands which you place in the runlevel directories like "/etc/rc.d/rc3.d" or "/etc/rc.d/rc4.d".
This is all initiated by th SysV rc script "/etc/rc.d/rc.sysvinit".
The init.d directory (in Slackware, "/etc/init.d" is a symlink to "/etc/rc.d/init.d") has nothing to do with "/etc/inittab".
If you add scripts to init.d they will have to be called with a "start" or "stop" parameter by start- and kill commands which you place in the runlevel directories like "/etc/rc.d/rc3.d" or "/etc/rc.d/rc4.d". This is all initiated by th SysV rc script "/etc/rc.d/rc.sysvinit".
Eric
Which is called by /etc/rc.d/rc.S, /etc/rc.d/rc.K, /etc/rc.d/rc.M, /etc/rc.d/rc.0, and /etc/rc.d/rc.6, all of which are called by the appropriate entries in /etc/inittab.
Plus nothing prevents you from placing a script in /etc/rc.d/init.d and calling it directly from one of the "normal" init scripts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.