Check if NFS mount is active before serving
March 09, 2014 05:23PM
Hello.

Anyone has idea how to check if NFS drive is mounted and alive before serve files from it ?

If drive is not alive or not mounted, i want to use copy of the files from NFS mount which is cached with cachefs, but for that i need to change my root directory dynamic based on NFS status.

Edit: May be some analogue in nginx of PHP function is_writable() ?

Thanks in advance



Edited 1 time(s). Last edit at 03/09/2014 05:27PM by beasty.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready