1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 493
/ 2 Years ago, fri, may 20, 2022, 12:18:47
I have a service that is started by a script /etc/init.d/foo
. When a certain CIFS share (//fileserver/multimedia on /home/username/multimedia type cifs
) becomes unavailable for any reason (unmounted, network down, cosmic rays,...), then I want the service foo
to be stopped automatically. When the share is available again, then I want the service foo
to (re)start automatically.
My criterium for "available" is: being able to access the files on the share.
How do I do that?
More From » mount