What will happens if i put scripts inside /etc/init.d ?
Hi !
Will they be executed at boot ? |
Why not give it a shot and find out? Create this file:
init_test Code:
#!/bin/bash |
Quote:
|
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 |
Perfect ! Thanks ^^.
|
Quote:
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. |
Ok.
Thanks. |
All times are GMT -5. The time now is 01:11 AM. |