- 论坛徽章:
- 0
|
让Oracle和监听自动启动?
Hi bill0831,
Directory "/sbin/init.d/" is a repository and it holds almost all the scripts used during system's bootup and shutdown. But when the system boots up or shuts down, it actually executes the scripts whose names begins with "S" or "K" under /sbin/rcX.d/ (here X is 4,3,2, etc.).
If you do a "ls -l /sbin/rc3.d/*", you will see all the Sxxx, Kxxx files are symbolic links to the scripts under /sbin/init.d/ directory.
e.g. if you want a script /sbin/init.d/mytest to be executed during the system bootup at run level 3, you have to link it from /sbin/init.d/ to /sbin/rc3.d/:
# ln -s /sbin/init.d/mytest /sbin/rc3.d/S900mytest
If I did not do the above link, the "mytest" would NOT run when system reboots. I hope this is not the case in lvpk's case.
Hope this explains. |
|