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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 Apr 2019 07:57:11 +0000 (07:57 +0000)
commit5a97b7f00ab0e4819daa41480c80d19c312ad37e
tree86a3951035f72a60f8aaccdb22299d3f62213c2d
parentf00827672cb061903d40b6c574e589febbb06a41
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>
(cherry picked from commit 42103b568698d8087d27f0848b402ccb7cfac86b)
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