diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
commit | 9aac569eaa031e27191a3f4165b389a17f467ad2 (patch) | |
tree | 1ed78841e1757014ccc09581c61c3683992d3f77 /ftp/ftpd-tls/files/ftpd-tls.in | |
parent | When installing in the base, USE_RCORDER does the right thing without (diff) |
Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file
No PORTREVISION bump necessary because this is a no-op
Diffstat (limited to 'ftp/ftpd-tls/files/ftpd-tls.in')
-rw-r--r-- | ftp/ftpd-tls/files/ftpd-tls.in | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ftp/ftpd-tls/files/ftpd-tls.in b/ftp/ftpd-tls/files/ftpd-tls.in new file mode 100644 index 000000000000..a276e72ca1bc --- /dev/null +++ b/ftp/ftpd-tls/files/ftpd-tls.in @@ -0,0 +1,42 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: ftpd-tls +# REQUIRE: LOGIN +# +# Available configuration variables for ftpd-tls are: +# +# ftpd_tls_enable (bool): Set to "YES" to enable ftpd-tls. +# Defaults to "NO". +# ftpd_tls_flags (flags): Extra flags to ftpd-tls (see ftpd-tls(8)). +# Defaults to "-U -l". +# +# Add at least the following line to /etc/rc.conf or /etc/rc.conf.local to +# enable ftpd-tls: +# +# ftpd_tls_enable="YES" +# + +. /etc/rc.subr + +name="ftpd_tls" +rcvar=ftpd_tls_enable + +command=%%PREFIX%%/libexec/ftpd-tls +command_args="> /dev/null" +start_precmd="ftpd_tls_precmd" +pidfile="/var/run/ftpd-tls.pid" + +ftpd_tls_precmd() +{ + rc_flags="${rc_flags} -D" +} + +load_rc_config $name + +: ${ftpd_tls_enable="NO"} +: ${ftpd_tls_flags="-U -l"} + +run_rc_command "$1" |