| 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/sysutils/reggae/files/ |
Upload File : |
#!/bin/sh
# PROVIDE: reggae_pf
# REQUIRE: pf local_unbound
# Add the following lines to /etc/rc.conf.local, /etc/rc.conf or
# /etc/rc.conf.d/reggae_pf to enable this service:
#
# reggae_pf_enable (bool): Set to NO by default.
# Set it to "YES" to enable virtual_oss.
# reggae_pf_directory (string): Directory containing PF anchor files
# Default is "/etc/pf.d"
. /etc/rc.subr
name=reggae_pf
desc="Reggae helper to load PF anchors"
rcvar=${name}_enable
start_precmd="${name}_precmd"
load_rc_config $name
: ${reggae_pf_enable:="NO"}
: ${reggae_pf_directory:="/etc/pf.conf.d"}
command="%%PREFIX%%/bin/reggae"
command_args="pf ${reggae_pf_directory}"
reggae_pf_precmd()
{
if [ ! -d "${reggae_pf_directory}" ]; then
echo "${reggae_pf_directory} is not directory" >&2
exit 1
fi
}
run_rc_command $*