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/mail/dcc-dccd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/mail/dcc-dccd/files/dccifd.in
#!/bin/sh

# PROVIDE: dccifd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown

#
# To enable dccifd add the following lines to /etc/rc.conf:
#
#dccifd_enable="YES"
#
# and in %%DCCHOME%%/dcc_conf change:
#
#DCCIFD_ENABLE=off
#
# to:
#
#DCCIFD_ENABLE=on
#
#
# See %%DCCHOME%%/dcc_conf to configure startup options

. /etc/rc.subr

name=dccifd
rcvar=dccifd_enable

load_rc_config $name

# Set defaults
: ${dccifd_enable:="NO"}
: ${dccifd_home="%%DCCDATA%%"}
: ${dccifd_libexec="%%PREFIX%%/libexec"}
: ${dccifd_conf="$dccifd_home/dcc_conf"}

pidfile=${dccifd_pidfile:-"/var/run/dcc/dccifd.pid"}
procname="${dccifd_libexec}/dccifd"
required_dirs="${dccifd_home} ${dccifd_libexec}"
required_files="${dccifd_conf} ${dccifd_libexec}/rcDCC"

start_precmd="start_precmd"
start_cmd="start_dcc"

start_precmd()
{
X=`grep ^DCCIFD_ENABLE ${dccifd_conf}`
eval $X
if [ "$DCCIFD_ENABLE"  != "on" ]
then
	echo "Warning ${X} needs to be on in ${dccifd_conf} to start dccifd"
	return 1
fi
}

start_dcc()
{
	echo Starting dccifd.
	${dccifd_libexec}/rcDCC -m dccifd start
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit