1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/config/nfs-checks.d
Martin Schwenke 42103b5686 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>
2019-03-31 10:45:20 +00:00
..
00.portmapper.check ctdb-scripts: Add portmapper NFS .check file 2015-07-14 09:57:18 +02:00
10.status.check ctdb-scripts: Stop/start mount/rquotad/status via NFS call-out 2019-03-31 10:45:20 +00:00
20.nfs.check
30.nlockmgr.check
40.mountd.check ctdb-scripts: Stop/start mount/rquotad/status via NFS call-out 2019-03-31 10:45:20 +00:00
50.rquotad.check ctdb-scripts: Stop/start mount/rquotad/status via NFS call-out 2019-03-31 10:45:20 +00:00
README ctdb-scripts: Extend NFS .check files with service_check_cmd variable 2015-07-14 09:57:18 +02:00

NFS check configuration files.

Files are named NN.RPCSERVICE.check.  Files without a .check suffix
are ignored.

Supported variables are:

* family             - "tcp" or "udp" or space separated list
                       default: tcp, not used with "service_check_cmd"
* version            - optional, RPC service version number
                       default is to omit to check for any version,
                       not used with "service_check_cmd"
* unhealthy_after    - number of check fails before unhealthy
                       default: 1
* restart_every      - number of check fails before restart
                       default: 0, meaning no restart
* service_stop_cmd   - command to stop service
                       default: no default, must be provided if
                                restart_every > 0
* service_start_cmd  - command to start service
                       default: no default, must be provided if
                                restart_every > 0
* service_check_cmd  - command to check health of service
                       default is to check RPC service using rpcinfo
* service_debug_cmd  - command to debug a service after trying to stop it;
                       for example, it can be useful to print stack
                       traces of threads that have not exited, since
                       they may be stuck doing I/O;
                       no default, see also function program_stack_traces()

Quoting inside values is not preserved.