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/monitorix/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

# PROVIDE: monitorix
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name=monitorix
rcvar=monitorix_enable

load_rc_config $name

: ${monitorix_enable:=NO}

start_cmd="${name}_start"
start_precmd=monitorix_check_rrds

pidfile="/var/run/${name}.pid"
command_interpreter=.
procname="%%PREFIX%%/bin/${name}"

monitorix_check_rrds()
{
	baselib=`grep ^base_lib %%PREFIX%%/etc/monitorix.conf`
	baselib=${baselib##*= }
	if [ "$baselib" = "%%DATADIR%%/" ]; then
		err 1 "Please update your monitorix.conf, replacing the base_lib value with %%DBDIR%%/ (note trailing slash)."
	fi
}

monitorix_start()
{
	if [ -z "$rc_fast" -a -n "$rc_pid" ]; then
		echo 1>&2 "${name} already running? (pid=$rc_pid)."
		return 1
	fi
	echo "Starting ${name}."
	rc_flags="-c %%PREFIX%%/etc/${name}.conf -p ${pidfile} ${rc_flags}"
	/usr/bin/env PATH="$PATH:%%PREFIX%%/sbin:%%PREFIX%%/bin" perl %%PREFIX%%/bin/${name} ${rc_flags} ${command_args}
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit