LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i add my script in init (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-add-my-script-in-init-218230/)

nukeu666 08-16-2004 07:44 AM

how do i add my script in init
 
i want to add a quotacheck script when my server bootsup
its a redhat machine
its recommended to run the script in init just after the drives are mounted on TLDP
i have the script ready...but i dont know where to copy it and where to add the entry for it...
thnx

acid_kewpie 08-16-2004 07:56 AM

you can either just stick the script into the end of the local service script, normally /etc/rc.local but if you did want to have it as a proper "service" after the mount is done, then take a simple service file in the /etc/init.d directory and modify where appropriate to make the start routine execute the script. once that works, create a symlink from that file to the /etc/rc?.d directorys, using a name of S??servicename where ss is the order / priority you wish.


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