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/multimedia/get_iplayer/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/multimedia/get_iplayer/files/get_iplayer.in
#!/bin/sh

# PROVIDE: get_iplayer
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
# enable get_iplayer:
# get_iplayer_enable (bool):	Set to "NO" by default.
# get_iplayer_flags (string):	Set to "" by default.
# get_iplayer_logfile (string):	Server info messages logfile. Set to ""
#				(no logging) by default.
# get_iplayer_chdir (string):	Set to the "get_iplayer" home directory
#				by default; this is where downloaded
#				files are stored. It should be
#				writeable by the get_iplayer user.
# get_iplayer_listen_address
#               (IP address):	Set to 127.0.0.1 by default.
# get_iplayer_bind_port
#              (number):	Set to 9370 by default.
#
##########################################################
## WARNING:
## For security reasons, do NOT set get_iplayer_bind_port
## unless your box is firewalled to allow only connections
## from your local subnet. It is safest to use SSH
## tunnelling if remote access is needed.
##########################################################


. /etc/rc.subr

name=get_iplayer
rcvar=get_iplayer_enable
desc="Server for fetching programs from iplayer and PVR functionality"

load_rc_config $name

: ${get_iplayer_enable:=NO}
: ${get_iplayer_flags=""}
: ${get_iplayer_chdir="$(pw usershow get_iplayer | awk -F: '{print $9}')"}
: ${get_iplayer_listen_address=127.0.0.1}
: ${get_iplayer_bind_port=9370}

get_iplayer_logfile="${get_iplayer_logfile:+"-o $get_iplayer_logfile"}"
get_iplayer_env="HOME='${get_iplayer_chdir}'"

command=/usr/sbin/daemon
command_args="-r -f ${get_iplayer_logfile} -u ${name} -p /var/run/${name}/${name}.pid %%WWWDIR%%/${name}.cgi -p ${get_iplayer_bind_port} -l ${get_iplayer_listen_address} --getiplayer %%WWWDIR%%/${name} ${get_iplayer_flags}"
get_iplayer_flags="" # This is needed to stop the flags being applied to the 'daemon' program.
procname=/usr/local/bin/perl
pidfile=/var/run/${name}/${name}.pid

start_precmd="install -d -o ${name} -m755 /var/run/${name}"

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit