mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 06:19:19 -04:00
We have not checked for this KEYWORD for a long time now, so this is a complete noop, and thus no PORTREVISION bump. Removing it at this point is mostly for pedantic reasons, and partly to avoid perpetuating this anachronism by copy and paste to future scripts.
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: moftpd
|
|
# REQUIRE: NETWORKING SERVERS
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable moftpd:
|
|
# moftpd_enable (bool): Set to "NO" by default.
|
|
# moftpdlimits_enable (bool):Set to "NO" by default.
|
|
# Set it to yes to run `limits $limits_args`
|
|
# just before moftpd starts.
|
|
# moftpd_flags (str): Set to "" by default.
|
|
# Extra flags passed to start command
|
|
# moftpdlimits_args (str): Default to "-e -C daemon"
|
|
# Arguments of pre-start limits run.
|
|
#
|
|
. %%RC_SUBR%%
|
|
|
|
name="moftpd"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/sbin/moftpd"
|
|
pidfile="/var/run/moftpd.pid"
|
|
required_files=%%PREFIX%%/etc/moftpd.conf
|
|
|
|
[ -z "$moftpd_enable" ] && moftpd_enable="NO"
|
|
[ -z "$moftpd_flags" ] && moftpd_flags=""
|
|
[ -z "$moftpdlimits_enable" ] && moftpdlimits_enable="NO"
|
|
[ -z "$moftpdlimits_args" ] && moftpdlimits_args="-e -C daemon"
|
|
|
|
load_rc_config $name
|
|
|
|
checkyesno moftpdlimits_enable && \
|
|
start_precmd="eval `/usr/bin/limits ${moftpdlimits_args}` 2>/dev/null"
|
|
|
|
run_rc_command "$1"
|