403Webshell
Server IP : 103.18.247.38  /  Your IP : 216.73.217.101
Web Server : Apache
System : Linux server2.aznethosting.net 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64
User : gmbizz ( 1200)
PHP Version : 8.1.34
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/nrpe-4.0.3/startup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/nrpe-4.0.3/startup/gentoo-init.in
#!/sbin/openrc-run
#
# Copyright (c) 2016 Nagios(R) Core(TM) Development Team
#
# Start/stop the nrpe daemon.
#
# Goes in /etc/init.d - Config is in /etc/conf.d/nrpe

extra_started_commands="reload"

NRPE_BIN="@sbindir@/nrpe"
NRPE_PID="@piddir@/nrpe.pid"
NRPE_CFG=@pkgsysconfdir@/nrpe.cfg

depend() {
	use logger dns net localmount netmount nfsmount
}

checkconfig() {
	# Make sure the config file exists
	if [ ! -f $NRPE_CFG ]; then
		eerror "You need to setup $NRPE_CFG."
		return 1
	fi
	return 0
}

start() {
	checkconfig || return 1
	ebegin "Starting nrpe"
	# Make sure we have a sane current directory
	cd /
	start-stop-daemon --start --exec $NRPE_BIN --pidfile $NRPE_PID \
		--background -- -c $NRPE_CFG -f $NRPE_OPTS
	eend $?
}

stop() {
	ebegin "Stopping nrpe"
	start-stop-daemon --stop --exec $NRPE_BIN --pidfile $NRPE_PID
	eend $?
}

reload() {
	ebegin "Reloading nrpe"
	start-stop-daemon --stop --oknodo --exec $NRPE_BIN \
		--pidfile $NRPE_PID --signal HUP
	eend $?
}

Youez - 2016 - github.com/yon3zu
LinuXploit