aboutsummaryrefslogtreecommitdiff
path: root/sysutils/radmind/files/radmind.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/radmind/files/radmind.in')
-rw-r--r--sysutils/radmind/files/radmind.in38
1 files changed, 38 insertions, 0 deletions
diff --git a/sysutils/radmind/files/radmind.in b/sysutils/radmind/files/radmind.in
new file mode 100644
index 000000000000..d64beb14c971
--- /dev/null
+++ b/sysutils/radmind/files/radmind.in
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: radmind
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable radmind:
+#
+#radmind_enable="YES"
+#
+# You may also override the default daemon user & flags:
+#
+#radmind_user="radmind"
+#radmind_flags="-D /var/radmind -u 077 -w 0"
+#
+# See radmind(8) for flags
+#
+
+. /etc/rc.subr
+
+name=radmind
+rcvar=radmind_enable
+
+command=%%PREFIX%%/sbin/radmind
+required_files=%%RADMIND_BASE_DIR%%/config
+
+# set defaults
+
+radmind_enable=${radmind_enable:-"NO"}
+radmind_user=${radmind_user:-"radmind"}
+radmind_flags=${radmind_flags:-"-D %%RADMIND_BASE_DIR%% -m 5 -u 077 -w 0"}
+
+load_rc_config ${name}
+run_rc_command "$1"