summaryrefslogtreecommitdiff
path: root/ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-18 20:54:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-18 20:54:41 +0000
commitea99a484345535a464a374dff9df4f53ca956dd0 (patch)
tree65a691eead9673ee80131af5bd33ca100ed461d2 /ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh
parentGGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it is (diff)
- Update to 1.1.0
PR: ports/83633 Submitted by: Nick Leuta <skynick@mail.sc.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=139536
Diffstat (limited to 'ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh')
-rw-r--r--ftp/bsdftpd-ssl/files/bsdftpd_ssl.sh34
1 files changed, 34 insertions, 0 deletions
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"