| 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/irc/znc/files/ |
Upload File : |
#!/bin/sh
#
# PROVIDE: znc
# REQUIRE: LOGIN DAEMON
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable znc:
#
# znc_enable: Set to NO by default. Set it to YES to enable it.
# znc_conf_dir: Directory where znc configuration
# data is stored.
# Default: %%PREFIX%%/etc/znc
# znc_user: The user account znc runs as what
# you want it to be. It uses 'znc' user by
# default. Do not sets it as empty or it will run
# as root.
#
. /etc/rc.subr
name=znc
rcvar=${name}_enable
command=%%PREFIX%%/bin/znc
load_rc_config ${name}
: ${znc_enable:="NO"}
: ${znc_user:="znc"}
: ${znc_conf_dir="%%PREFIX%%/etc/znc"}
znc_flags=" \
${znc_conf_dir:+-d ${znc_conf_dir}} \
${znc_flags}"
run_rc_command "$1"