aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/ipropd_master
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rc/rc.d/ipropd_master')
-rwxr-xr-xlibexec/rc/rc.d/ipropd_master43
1 files changed, 43 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/ipropd_master b/libexec/rc/rc.d/ipropd_master
new file mode 100755
index 000000000000..a3ca498afe6c
--- /dev/null
+++ b/libexec/rc/rc.d/ipropd_master
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+#
+
+# PROVIDE: ipropd_master
+# REQUIRE: kdc
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name=ipropd_master
+rcvar=${name}_enable
+required_files="$ipropd_master_keytab"
+start_precmd=${name}_start_precmd
+start_postcmd=${name}_start_postcmd
+
+: ${ipropd_master_svcj_options:="net_basic"}
+
+ipropd_master_start_precmd()
+{
+
+ if [ -z "$ipropd_master_slaves" ]; then
+ warn "\$ipropd_master_slaves is empty."
+ return 1
+ fi
+ for _slave in $ipropd_master_slaves; do
+ echo $_slave
+ done > /var/heimdal/slaves || return 1
+}
+ipropd_master_start_postcmd()
+{
+
+ echo "${name}: slave nodes: $ipropd_master_slaves"
+}
+
+load_rc_config $name
+
+command_args="$command_args \
+ --keytab=\"$ipropd_master_keytab\" \
+ --detach \
+"
+
+run_rc_command "$1"