I'm building a site that will allow users to access info while our primary server is down for nightly backup/maintenance.
Our webserver (FreeBSD 4.5) has an NFS mount to an IBM AS/400 (V4R5M0). Throughout the course of a day, documents get dumped into the NFS dir where they are archived to the webserver. When the /400 goes down (scheduled or unscheduled),
I need to know that the link has been terminated.
Currently, the PHP script is run from a command-line. When called and the NFS server on the AS/400 is down, it will just hang.
Anybody have any ideas how to either give a timeout on the mount or even turn this script into an active daemon, which can handle this issue?
Thanks in advance!