Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On Mon, Jun 28, 2010 at 10:49:37AM -0400, theBlueSage wrote: > Hi folks, > > For my startup/init process (/etc/rc.d/rc3.d/), I have S60NFS followed > by S85httpd and S85tomcat. If for some reason the NFS mounts > from /etc/fstab fail, and tomcat and httpd startup without access to the > NFS mounted file system, then tomcat can get into a mess as my default > program running in tomcat requires indexes that are in the NFS > partitions. > > Is there any way that I can tell the startup process to _not_start httpd > and tomcat if the nfs mounts fail, or is this the kind of thing that > should be handled at program level? > > I see in the net/free BSD versions on rc.d that there are > "PROVIDE/REQUIRE" type switched that can be added to scripts > in /etc/init.d that make sure certain processes are started before > others, but I dont see any linux (or more specifically redhat) > references to such options ... Well, the obvious thing to do is to have tomcat and httpd scripts check for the existence of a particular file on the NFS mountpoint. if [ ! -f /mount/filesystem/knownfile ]; then echo "can't find knownfile; is NFS mounted? \n" date | mail -s "NFS mount problem on $HOST" alerts-QZmI/2vgwZVWk0Htik3J/w at public.gmane.org exit 99 fi or similar. If NFS is critical, you will also want to monitor it regularly. -- http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference. You can't defend freedom by getting rid of it.
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |