blob: 6379b96c1879f427ff97f10ed0dc37bc7ac1f1f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/ftp/moftpd/files/Attic/moftpd.in,v 1.1 2008-12-26 04:32:41 pgollucci Exp $
#
# 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
load_rc_config $name
[ -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"
checkyesno moftpdlimits_enable && \
start_precmd="eval `/usr/bin/limits ${moftpdlimits_args}` 2>/dev/null"
run_rc_command "$1"
|