1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

ctdb-scripts: Drop unused ctdbd_wrapper

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2022-02-01 08:35:37 +11:00 committed by Amitay Isaacs
parent a1e78cc372
commit 8deec3bc67
7 changed files with 0 additions and 174 deletions

View File

@ -1,52 +0,0 @@
#!/bin/sh
# ctdbd wrapper - start or stop CTDB
usage ()
{
echo "usage: ctdbd_wrapper { start | stop }"
exit 1
}
[ $# -eq 1 ] || usage
action="$1"
############################################################
if [ -z "$CTDB_BASE" ] ; then
export CTDB_BASE="/usr/local/etc/ctdb"
fi
. "${CTDB_BASE}/functions"
load_system_config "ctdb"
ctdbd="${CTDBD:-/usr/local/sbin/ctdbd}"
############################################################
start()
{
eval "$ctdbd" || return 1
}
stop()
{
$CTDB shutdown || return 1
}
############################################################
# Allow notifications for start/stop.
if [ -x "$CTDB_BASE/rc.ctdb" ] ; then
"$CTDB_BASE/rc.ctdb" "$action"
fi
case "$action" in
start) start ;;
stop) stop ;;
*)
echo "usage: $0 {start|stop}"
exit 1
esac

View File

@ -1110,9 +1110,6 @@ correct CIFS semantics to clients.
<citerefentry><refentrytitle>ctdbd</refentrytitle> <citerefentry><refentrytitle>ctdbd</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>, <manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>ctdbd_wrapper</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>ctdb_diagnostics</refentrytitle> <citerefentry><refentrytitle>ctdb_diagnostics</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>, <manvolnum>1</manvolnum></citerefentry>,

View File

@ -30,12 +30,6 @@
ctdbd is the main CTDB daemon. ctdbd is the main CTDB daemon.
</para> </para>
<para>
Note that ctdbd is not usually invoked directly. It is invoked
via <citerefentry><refentrytitle>ctdbd_wrapper</refentrytitle>
<manvolnum>1</manvolnum></citerefentry> or via the initscript.
</para>
<para> <para>
See <citerefentry><refentrytitle>ctdb</refentrytitle> See <citerefentry><refentrytitle>ctdb</refentrytitle>
<manvolnum>7</manvolnum></citerefentry> for an overview of CTDB. <manvolnum>7</manvolnum></citerefentry> for an overview of CTDB.
@ -80,9 +74,6 @@
<citerefentry><refentrytitle>ctdb</refentrytitle> <citerefentry><refentrytitle>ctdb</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>, <manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>ctdbd_wrapper</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>onnode</refentrytitle> <citerefentry><refentrytitle>onnode</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>, <manvolnum>1</manvolnum></citerefentry>,

View File

@ -1,93 +0,0 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE refentry
PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<refentry id="ctdbd_wrapper.1">
<refmeta>
<refentrytitle>ctdbd_wrapper</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="source">ctdb</refmiscinfo>
<refmiscinfo class="manual">CTDB - clustered TDB database</refmiscinfo>
</refmeta>
<refnamediv>
<refname>ctdbd_wrapper</refname>
<refpurpose>Wrapper for ctdbd</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>ctdbd_wrapper</command>
<group choice="req">
<arg choice="plain">start</arg>
<arg choice="plain">stop</arg>
</group>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>
ctdbd_wrapper is used to start or stop the main CTDB daemon.
</para>
<para>
See <citerefentry><refentrytitle>ctdb</refentrytitle>
<manvolnum>7</manvolnum></citerefentry> for an overview of CTDB.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>
<citerefentry><refentrytitle>ctdbd</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>ctdb.sysconfig</refentrytitle>
<manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>ctdb</refentrytitle>
<manvolnum>7</manvolnum></citerefentry>,
<ulink url="http://ctdb.samba.org/"/>
</para>
</refsect1>
<refentryinfo>
<author>
<contrib>
This documentation was written by
Amitay Isaacs,
Martin Schwenke
</contrib>
</author>
<copyright>
<year>2007</year>
<holder>Andrew Tridgell</holder>
<holder>Ronnie Sahlberg</holder>
</copyright>
<legalnotice>
<para>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of
the License, or (at your option) any later version.
</para>
<para>
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
</para>
<para>
You should have received a copy of the GNU General Public
License along with this program; if not, see
<ulink url="http://www.gnu.org/licenses"/>.
</para>
</legalnotice>
</refentryinfo>
</refentry>

View File

@ -214,7 +214,6 @@ fi
%{_sysconfdir}/ctdb/statd-callout %{_sysconfdir}/ctdb/statd-callout
%{_sysconfdir}/ctdb/nfs-linux-kernel-callout %{_sysconfdir}/ctdb/nfs-linux-kernel-callout
%{_sbindir}/ctdbd %{_sbindir}/ctdbd
%{_sbindir}/ctdbd_wrapper
%{_bindir}/ctdb %{_bindir}/ctdb
%{_bindir}/ping_pong %{_bindir}/ping_pong
%{_bindir}/ltdbtool %{_bindir}/ltdbtool
@ -230,7 +229,6 @@ fi
%{_mandir}/man1/ctdb.1.gz %{_mandir}/man1/ctdb.1.gz
%{_mandir}/man1/ctdb_diagnostics.1.gz %{_mandir}/man1/ctdb_diagnostics.1.gz
%{_mandir}/man1/ctdbd.1.gz %{_mandir}/man1/ctdbd.1.gz
%{_mandir}/man1/ctdbd_wrapper.1.gz
%{_mandir}/man1/onnode.1.gz %{_mandir}/man1/onnode.1.gz
%{_mandir}/man1/ltdbtool.1.gz %{_mandir}/man1/ltdbtool.1.gz
%{_mandir}/man1/ping_pong.1.gz %{_mandir}/man1/ping_pong.1.gz

View File

@ -1,7 +0,0 @@
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "ctdbd_wrapper"
shellcheck_test "${CTDB_SCRIPTS_SBIN_DIR}/ctdbd_wrapper"

View File

@ -46,7 +46,6 @@ manpages_binary = [
manpages_misc = [ manpages_misc = [
'ctdb_diagnostics.1', 'ctdb_diagnostics.1',
'ctdbd_wrapper.1',
'onnode.1', 'onnode.1',
'ctdb.conf.5', 'ctdb.conf.5',
'ctdb-script.options.5', 'ctdb-script.options.5',
@ -780,13 +779,6 @@ def build(bld):
bld.INSTALL_FILES('${CTDB_HELPER_BINDIR}', 'ctdb_lvs', bld.INSTALL_FILES('${CTDB_HELPER_BINDIR}', 'ctdb_lvs',
destname='ctdb_lvs', chmod=MODE_755) destname='ctdb_lvs', chmod=MODE_755)
bld.SAMBA_GENERATOR('ctdbd-wrapper',
source='config/ctdbd_wrapper',
target='ctdbd_wrapper',
rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline))
bld.INSTALL_FILES('${SBINDIR}', 'ctdbd_wrapper',
destname='ctdbd_wrapper', chmod=MODE_755)
def SUBDIR_MODE_callback(arg, dirname, fnames): def SUBDIR_MODE_callback(arg, dirname, fnames):
for f in fnames: for f in fnames:
fl = os.path.join(dirname, f) fl = os.path.join(dirname, f)