ctdb-scripts: Stop/start mount/rquotad/status via NFS call-out
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Mar 2019 06:35:44 +0000 (17:35 +1100)
committerMartin Schwenke <martins@samba.org>
Sun, 31 Mar 2019 10:45:20 +0000 (10:45 +0000)
commit42103b568698d8087d27f0848b402ccb7cfac86b
tree1d280738ccfeb4b108f2d469f612dcb9aaea102b
parent8de0a339b550e7363d265af04ad69f2179af75c6
ctdb-scripts: Stop/start mount/rquotad/status via NFS call-out

When an NFS check restarts a failed service by hand then systemd will
be unable to stop or start this service again because (at least) the
PID file will be wrong.  Do this via the NFS Linux kernel call-out
instead.  Allow the call-out to use the services instead of doing
manual restarts.  Add variables for mount, status and rquotad services
to support this.

Adding systemd NFS services to the call-out will follow.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13860

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@samba.org>
ctdb/config/nfs-checks.d/10.status.check
ctdb/config/nfs-checks.d/40.mountd.check
ctdb/config/nfs-checks.d/50.rquotad.check
ctdb/config/nfs-linux-kernel-callout