| 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/www/cntlm/files/ |
Upload File : |
#!/bin/sh
#
# PROVIDE: cntlm
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf to enable cntlm
#
# cntlm_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable cntlm.
# cntlm_config (path): Config file. Defaults to /usr/local/etc/cntlm.conf.
# cntlm_user (str): User to run cntlm as
# cntlm_flags (str): Additional flags to pass to cntlm
#
. /etc/rc.subr
name="cntlm"
rcvar=cntlm_enable
load_rc_config $name
: ${cntlm_enable="NO"}
: ${cntlm_config="%%PREFIX%%/etc/cntlm.conf"}
: ${cntlm_user="nobody"}
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/${name}
command_args="-P $pidfile -c $cntlm_config"
start_precmd="cntlm_prestartcmd"
cntlm_prestartcmd() {
touch $pidfile
chown $cntlm_user $pidfile
}
run_rc_command "$1"