ports/dns/noip/files/noip.in
Alexander Leidinger 19e09d9174 dns/noip: make the rc script service jails aware
PR:		279633
Approved by:	maintainer timeout (1 month)
2024-07-10 15:39:41 +02:00

33 lines
732 B
Bash

#!/bin/sh
# PROVIDE: noip
# REQUIRE: NETWORKING SYSLOG DAEMON
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# noip_enable (bool): Set to NO by default.
# Set it to YES to enable noip.
# noip_config (path): Set to %%PREFIX%%/etc/no-ip2.conf by default.
# noip_flags: Set to -c %%PREFIX%%/etc/no-ip2.conf by default.
#
. /etc/rc.subr
name="noip"
rcvar=noip_enable
command="%%PREFIX%%/bin/noip2"
load_rc_config $name
: ${noip_enable="NO"}
: ${noip_svcj_options:="net_basic"}
: ${noip_config="%%PREFIX%%/etc/no-ip2.conf"}
: ${noip_flags="-c $noip_config"}
: ${noip_user="noip"}
: ${noip_group="noip"}
required_files=${noip_config}
run_rc_command "$1"