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/www/polipo/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/www/polipo/files/polipo.in
#!/bin/sh

# PROVIDE: polipo
# REQUIRE: NETWORK
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable polipo:
# polipo_enable="YES"
# polipo_flags="<set as needed>"

. /etc/rc.subr

name=polipo
rcvar=polipo_enable

polipo_enable=${polipo_enable:-"NO"}
polipo_user=%%USER%%
polipo_group=%%GROUP%%
pidfile=%%PPIDFILE%%
config_file=%%PCONFIGDIR%%config
required_files=$config_file

command="%%PREFIX%%/bin/polipo"
config_args="-c ${config_file}"
command_args="$config_args daemonise=true pidFile=${pidfile}"
start_precmd="rm -f ${pidfile}"

extra_commands=expire

expire_cmd=expire_cmd
expire_cmd () {
	if [ $rc_pid ]; then
        	kill -USR1 $rc_pid
		# allow polipo to write out all files
		sleep 5
	fi
        su -m ${polipo_user} -c "${command} ${config_args} -x"
	if [ $rc_pid ]; then
        	kill -USR2 $rc_pid
	fi
}


load_rc_config $name

run_rc_command "$1"


Youez - 2016 - github.com/yon3zu
LinuXploit