summaryrefslogtreecommitdiff
path: root/ftp/wzdftpd/files/wzdftpd.in
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-08-05 23:19:36 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-08-05 23:19:36 +0000
commit9aac569eaa031e27191a3f4165b389a17f467ad2 (patch)
tree1ed78841e1757014ccc09581c61c3683992d3f77 /ftp/wzdftpd/files/wzdftpd.in
parentWhen 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
Notes
Notes: svn path=/head/; revision=302141
Diffstat (limited to 'ftp/wzdftpd/files/wzdftpd.in')
-rw-r--r--ftp/wzdftpd/files/wzdftpd.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/ftp/wzdftpd/files/wzdftpd.in b/ftp/wzdftpd/files/wzdftpd.in
new file mode 100644
index 000000000000..133f8a3e5b82
--- /dev/null
+++ b/ftp/wzdftpd/files/wzdftpd.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Start or stop wzdftpd
+# $FreeBSD$
+
+# PROVIDE: wzdftpd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+
+# Add the following lines to /etc/rc.conf to enable wzdftpd
+# wzdftpd_enable="YES"
+# wzdftpd_flags="<set as needed>"
+
+wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd
+
+. /etc/rc.subr
+
+name="wzdftpd"
+rcvar=wzdftpd_enable
+command="%%PREFIX%%/sbin/${name}"
+required_files="%%PREFIX%%/etc/wzd.cfg"
+
+load_rc_config $name
+run_rc_command "$1"