aboutsummaryrefslogtreecommitdiff
path: root/net/dante/files/sockd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/dante/files/sockd.in')
-rw-r--r--net/dante/files/sockd.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/net/dante/files/sockd.in b/net/dante/files/sockd.in
new file mode 100644
index 000000000000..078e49ea23e1
--- /dev/null
+++ b/net/dante/files/sockd.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: sockd
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable sockd:
+#
+#sockd_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=sockd
+rcvar=sockd_enable
+
+command=%%PREFIX%%/sbin/sockd
+pidfile=/var/run/sockd.pid
+required_files=%%PREFIX%%/etc/sockd.conf
+
+sockd_enable=${sockd_enable:-"NO"}
+sockd_flags=${sockd_flags:-"-D"}
+
+load_rc_config $name
+run_rc_command "$1"