diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-13 21:41:11 +0000 |
commit | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (patch) | |
tree | c44943ee0563a3fa957716de909fed683117fcb9 /sys-cluster/galera/files/garb.sh | |
parent | 69051588e2f955485fe5d45d45e616bc60a2de57 (diff) |
gentoo (valentine's day) resync : 14.02.2021
Diffstat (limited to 'sys-cluster/galera/files/garb.sh')
-rw-r--r-- | sys-cluster/galera/files/garb.sh | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sys-cluster/galera/files/garb.sh b/sys-cluster/galera/files/garb.sh deleted file mode 100644 index f03eaffc076a..000000000000 --- a/sys-cluster/galera/files/garb.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - use net - after mysql -} - -start() { - ebegin "Starting ${SVCNAME}" - - if [ -z "${GALERA_NODES}" ]; then - eerror "List of GALERA_NODES is not configured" - return 1 - fi - - if [ -z "${GALERA_GROUP}" ]; then - eerror "GALERA_GROUP name is not configured" - return 1 - fi - - GALERA_PORT="${GALERA_PORT:-4567}" - - OPTIONS="-a gcomm://${GALERA_NODES// /,} -g ${GALERA_GROUP}" - [ -n "${GALERA_OPTIONS}" ] && OPTIONS="${OPTIONS} -o ${GALERA_OPTIONS}" - [ -n "${LOG_FILE}" ] && OPTIONS="${OPTIONS} -l ${LOG_FILE}" - [ -n "${NODE_NAME}" ] && OPTIONS="${OPTIONS} -n ${NODE_NAME}" - - start-stop-daemon \ - --start \ - --exec /usr/bin/garbd \ - --pidfile "${PIDFILE}" \ - --make-pidfile \ - --user garbd \ - --group garbd \ - --background \ - -- ${OPTIONS} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon \ - --stop \ - --exec /usr/bin/garbd \ - --pidfile "${PIDFILE}" - eend $? -} |