Re: startup scripts
Wade Price <[email protected]> Thu, 17 Mar 2005 18:32:58 -0500
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
Shea, By convention, all startup scripts should reside in /etc/init.d To have the system execute them, you create a link (I prefer a symbolic link) to the startup script in /etc/init.d in the appropriate rcX.d directory, e.g. ln -s /etc/init.d/WOServices /etc/rc3.d/S79WOServices ln -s /etc/init.d/WOServices /etc/rc2.d/K79WOServices Prefix the link filename with an S (for 'start') or K (for 'stop') followed by a number, which indicates the order of execution. When the system enters the corresponding run level, it will execute all of the K scripts with the argument 'stop' , then execute all of the S scripts with the argument 'start'. BTW, the WO installer provides an option to create these links for you. However, in my experience it creates hard links (vs. symbolic) which can be problematic. Also, these are the appropriate run levels for Solaris. Linux is probably different. Wade On Mar 17, 2005, at 5:22 PM, Shea Tisdale wrote: > I've seen installations that use a script under /etc/rc2.d - usually > called > S79WOServices > > But I've also seen a WOServices under /etc/init.d and I've noticed > that the > WO startup creation script puts a file in /etc/init.d. > > What is the purpose of each and is there any distinction. I've got > servers > I inherited running just fine without anything under /etc/init.d. > > Thanks. > > _______________________________________________ > WebObjects-admin mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-admin