1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/config
Martin Schwenke aac607d727 ctdb-eventscripts: Ensure $GANRECDIR points to configured subdirectory
Check that the $GANRECDIR symlink points to the location specified by
$CTDB_GANESHA_REC_SUBDIR and replace it if incorrect.  This handles
reconfiguration and filesystem changes.

While touching this code:

* Create the $GANRECDIR link as a separate step if it doesn't exist.
  This means there is only 1 place where the link is created.

* Change some variables names to the style used for local function
  variables.

* Remove some "ln failed" error messages.  ln failures will be logged
  anyway.

* Add -v to various mkdir/rm/ln commands so that these actions are
  logged when they actually do something.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Jun 20 05:40:16 CEST 2014 on sn-devel-104
2014-06-20 05:40:16 +02:00
..
events.d ctdb-eventscripts: Ensure $GANRECDIR points to configured subdirectory 2014-06-20 05:40:16 +02:00
nfs-rpc-checks.d eventscripts: Become unhealthy faster on nfsd failure 2013-08-14 16:10:30 +10:00
ctdb-crash-cleanup.sh scripts: drop_all_public_ips() now prints messages to stdout, not log 2013-06-20 13:01:09 +10:00
ctdb.init Add missing $remote_fs LSB dependency 2013-10-24 16:54:08 +11:00
ctdb.service initscript: Update systemd configuration to put PID file in /run/ctdb 2013-10-25 12:06:07 +11:00
ctdb.sudoers statd-callout: Make sure statd callout script always runs as root 2013-04-08 11:14:28 +10:00
ctdb.sysconfig ctdb-config: Simplify the default CTDB configuration file 2013-11-27 18:46:17 +01:00
ctdbd_wrapper initscript: New configuration variable CTDB_DBDIR_STATE 2013-10-22 14:34:05 +11:00
debug_locks.sh ctdb-scripts: Be careful when generating unique pids for stack traces 2013-11-27 18:46:17 +01:00
debug-hung-script.sh ctdb-scripts: Enhancements to hung script debugging 2014-02-19 12:04:47 +11:00
functions ctdb-eventscripts: Fix regression in IP add/delete functions 2014-03-23 04:20:14 +01:00
gcore_trace.sh common: Debug ctdb_addr_to_str() using new function ctdb_external_trace() 2012-10-18 20:05:42 +11:00
notify.d.README scripts: Rework notify.sh to use notify.d/ directory 2013-05-23 16:18:23 +10:00
notify.sh scripts: Rework notify.sh to use notify.d/ directory 2013-05-23 16:18:23 +10:00
README Eventscript support - Remove unused interface_modify.sh 2012-03-22 15:30:27 +11:00
statd-callout ctdb-scripts: Add an early exit to statd-callout's notify case 2013-11-27 18:46:16 +01:00

This directory contains run-time support scripts for CTDB.

Selected highlights:

  ctdb.init

    An initscript for starting ctdbd at boot time.

  events.d/

    Eventscripts.  See events.d/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.