LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   script when server startup (https://www.linuxquestions.org/questions/linux-server-73/script-when-server-startup-611888/)

invent 01-07-2008 10:06 PM

script when server startup
 
Hi all,

I has one script which i would like to run this script when server startup. But i don't know How to run its?
Please,sucess me.

OS: Redhat AS4 update1

thedonkdonk 01-08-2008 12:31 AM

Copy the file to the /etc/init.d/ directory and make a symlink to that file in the /etc/rc5.d/ and /etc/rc3.d/ directories.

invent 01-08-2008 04:05 AM

Thank you very much.

jlinkels 01-08-2008 06:26 PM

Uhm it is distro dependent and not that simple, just symlinking doesn't work. Redhat used to have a command for that (forgot what it was), Debian does it with update-rc.d. You have to specify the base name, run levels and load priority.

jlinkels


All times are GMT -5. The time now is 01:08 AM.