On 16 Jul 2001, Alexis Vasquez wrote:

>Date: 16 Jul 2001 13:28:59 AST
>From: Alexis Vasquez <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>Content-Type: text/plain; charset=US-ASCII
>Subject: check nfs service
>
>Hi.
>
>I wonder How could I verify if there is a specific service runnin'.
> I mean in a script.
>
>This is due to I have to linux boxes with each one mounting a filesystem
>from the other. but one of then is shuting down every day and I have to
>log in and run /etc/rc.d/init.d/nfs {stop|start}.
>
>the question is How could I (maybe in a cron) verify if the nfs filesystem
>is mounted and if not run nfs stop and nfs start.

service foo status

As for testing if a fs is mounted try statting a file on the FS,
perhaps the mountpoint...


----------------------------------------------------------------------
    Mike A. Harris  -  Linux advocate  -  Open Source advocate
       Opinions and viewpoints expressed are solely my own.
----------------------------------------------------------------------



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to