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/sysutils/bareos20-server/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/bareos20-server/files/bareos-fd.in
#!/bin/sh

# PROVIDE: bareos_fd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# bareos_fd_enable  (bool):  Set to NO by default.
#               Set it to YES to enable bareos_fd.
# bareos_fd_flags (params):  Set params used to start bareos_fd.
# bareos_fd_config (params):  Path to the config file/directory
#

. /etc/rc.subr

name="bareos_fd"
rcvar=${name}_enable

load_rc_config $name

: ${bareos_fd_enable="NO"}
: ${bareos_fd_flags="-u root -g wheel -v"}
: ${bareos_fd_config="%%PREFIX%%/etc/bareos/"}
: ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"}

command=%%PREFIX%%/sbin/bareos-fd
command_args="-c ${bareos_fd_config}"
pidfile="${bareos_fd_pidfile}"
start_precmd="bareos_start_precmd"

bareos_start_precmd() {
	[ -d "${pidfile%/*}" ] || {
		getent passwd bareos > /dev/null 2&>1
		if [ $? -eq 0] ; then
			# user bareos exists
			install -d -o bareos -g bareos ${pidfile%/*}
		else
			# bareos_fd as solitair service
			install -d -o root -g wheel ${pidfile%/*}
		fi
	}
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit