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/devel/py-buildbot/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/devel/py-buildbot/files/buildbot.in
#!/bin/sh

# PROVIDE: buildbot
# REQUIRE: DAEMON
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable buildbot:
# buildbot_enable (bool):	Set to "NO" by default
# buildbot_basedir (path):	Must be set to the path of the buildbot directory
#				file, e.g. /var/www/buildbot
# buildbot_user (str):		Set to "root" by default.  Change it to run
#				buildbot as a different user.

. /etc/rc.subr

export PATH=${PATH}:%%PREFIX%%/bin

name="buildbot"
rcvar=buildbot_enable
command="%%PREFIX%%/bin/buildbot-%%PYTHON_VER%%"
load_rc_config $name

check_cmd="${name}_check"
extra_commands="check reload"
reload_cmd="${name}_reload"
start_precmd="${name}_prestart"
stop_precmd="${name}_prestop"

pidfile="${buildbot_basedir}/twistd.pid"
procname="%%PYTHON_CMD%%"

buildbot_check()
{
	echo "Checking BuildBot config"
	rc_flags="${buildbot_basedir} ${rc_flags}"
	${command} checkconfig ${rc_flags}
}

buildbot_prestart()
{
	rc_flags="start ${buildbot_basedir} ${rc_flags}"
}

buildbot_prestop()
{
	rc_flags="stop ${buildbot_basedir} ${rc_flags}"
}

buildbot_reload()
{
	rc_flags="${buildbot_basedir} ${rc_flags}"
	${command} sighup ${rc_flags}
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit