403Webshell
Server IP : 72.60.233.178  /  Your IP : 216.73.217.123
Web Server : Apache
System : Linux srv1210665.hstgr.cloud 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : armaladmin ( 1001)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

if [[ -f /etc/debian_version ]]; then
    config=/etc/default/garb
else
    config=/etc/sysconfig/garb
fi #

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'"
    [ -n "${WORK_DIR:-}" ]       && OPTIONS="$OPTIONS -w '$WORK_DIR'"

    eval program_start $OPTIONS
}

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

exit $?

Youez - 2016 - github.com/yon3zu
LinuXploit