mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
9313731e96
/etc/os-release is quite universal. It can be found on most Linux distros and on FreeBSD. Attempt to use /etc/os-release to detect Red Hat, SUSE and Debian based distros. If /etc/os-release exists but distro is unknown then $ID is printed as the detected distro, which will probably result in sub-optimal behaviour, but when tracing it will at least indicate that a new distro needs to be handled. The only way to handle missing /etc/os-release is to set CTDB_INIT_STYLE - see ctdb.sysconfig(5) for details. The event script unit tests are updated to use /etc/os-release so the new logic is exercised. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Mon Oct 30 09:19:11 UTC 2023 on atb-devel-224 |
||
---|---|---|
.. | ||
events | ||
nfs-checks.d | ||
ctdb-crash-cleanup.sh | ||
ctdb.conf | ||
ctdb.init | ||
ctdb.sudoers | ||
ctdb.sysconfig | ||
ctdb.tunables | ||
debug_locks.sh | ||
debug-hung-script.sh | ||
functions | ||
nfs-linux-kernel-callout | ||
notification.README | ||
notify.sh | ||
README | ||
script.options | ||
statd-callout |
This directory contains run-time support scripts for CTDB. Selected highlights: ctdb.init An initscript for starting ctdbd at boot time. events/ Eventscripts. See events/README for more details. functions Support functions, sourced by eventscripts and other scripts. statd-callout rpc.statd high-availability callout to support lock migration on failover. Notes: * All of these scripts are written in POSIX Bourne shell. Please avoid bash-isms, including the use of "local" variables (which are not available in POSIX shell). * Do not use absolute paths for commands. Unit tests attempt to replace many commands with stubs and can not do this if commands are specified with absolute paths. The functions file controls $PATH so absolute paths should not be required.