ports/ftp/wzdftpd/files/wzdftpd.in
Alexander Leidinger 305de2d99a ftp/wzdftpd: make the rc script service jails aware
Approved by:	maintainer
2024-06-14 18:01:44 +02:00

23 lines
478 B
Bash

#!/bin/sh
# PROVIDE: wzdftpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable wzdftpd:
# wzdftpd_enable="YES"
# wzdftpd_flags="<set as needed>"
wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd
. /etc/rc.subr
name="wzdftpd"
rcvar=wzdftpd_enable
command="%%PREFIX%%/sbin/${name}"
required_files="%%PREFIX%%/etc/wzdftpd/wzd.cfg"
: ${wzdftpd_svcj_options:="net_basic"}
load_rc_config $name
run_rc_command "$1"