403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
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/digdag/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/digdag/files/digdag.in
#!/bin/sh

# PROVIDE: digdag
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# digdag_enable (bool):	Set to NO by default.
#			Set it to YES to enable it.
# digdag_user:		The user account the digdag daemon runs as.
#			It uses 'digdag' user by default.
#			Do not sets it as empty or it will run as root.
# digdag_conf:		The configuration file digdag uses.    
#			Default: %%PREFIX%%/etc/digdag.conf
# digdag_logfile:	The log file digdag uses.
#			Default: /var/log/digdag/digdag.log

. /etc/rc.subr
name="digdag"
rcvar="${name}_enable"
load_rc_config ${name}

: ${digdag_enable:="NO"}
: ${digdag_user:="digdag"}
: ${digdag_conf:="%%PREFIX%%/etc/digdag.conf"}
: ${digdag_logdir:="/var/log/digdag"}
: ${digdag_logfile:="${digdag_logdir}/digdag.log"}
: ${digdag_taskdir:="${digdag_logdir}/tasks"}
: ${digdag_dbdir:="/var/db/digdag"}

command="/usr/sbin/daemon"
pidfile=/var/run/digdag/digdag.pid
procname="%%JAVA%%"
digdag_flags="-f -p ${pidfile} ${name} server --log ${digdag_logfile} --task-log ${digdag_taskdir} --database ${digdag_dbdir} --config ${digdag_conf}"

start_precmd="digdag_prestart"

digdag_prestart()
{
	for dir in ${digdag_logdir} ${digdag_taskdir}
	do
		if [ ! -d ${dir} ]; then
			install -d -m 0755 -o ${digdag_user} ${dir}
		fi
	done

	if [ ! -d ${digdag_dbdir} ]; then
		install -d -m 0750 -o ${digdag_user} ${digdag_dbdir}
	fi
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit