From ea99a484345535a464a374dff9df4f53ca956dd0 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 18 Jul 2005 20:54:41 +0000 Subject: - Update to 1.1.0 PR: ports/83633 Submitted by: Nick Leuta (maintainer) --- ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh (limited to 'ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh') diff --git a/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh b/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh new file mode 100644 index 000000000000..3b12d07cd253 --- /dev/null +++ b/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# PROVIDE: bsdftpd_ssl +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: FreeBSD shutdown + +# +# You need to set "bsdftpd_ssl_enable=YES" in either /etc/rc.conf, +# /etc/rc.conf.local or /etc/rc.conf.d/bsdftpd_ssl to make this script actually +# do something. There you can also set bsdftpd_ssl_flags. Note: the "-D" and +# "-p" options will be added automatically, you should not specify them. Please +# see the examples and the ftpd-ssl(8) man page for more information. +# + +. %%RC_SUBR%% + +name="bsdftpd_ssl" +rcvar=`set_rcvar` +pidfile="/var/run/ftpd.pid" +command="%%PREFIX%%/libexec/ftpd" +command_args="-D -p ${pidfile}" + +stop_postcmd="rm -f /var/run/ftpd.pid" + +# Set defaults + +bsdftpd_ssl_enable=${bsdftpd_ssl_enable:-"NO"} +bsdftpd_ssl_flags=${bsdftpd_ssl_flags:-""} + +# Run the daemon + +load_rc_config $name +run_rc_command "$1" -- cgit v1.2.3