xref: /freebsd/libexec/rc/rc.d/ipropd_master (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1#!/bin/sh
2#
3#
4
5# PROVIDE: ipropd_master
6# REQUIRE: kdc
7# KEYWORD: shutdown
8
9. /etc/rc.subr
10
11name=ipropd_master
12rcvar=${name}_enable
13required_files="$ipropd_master_keytab"
14start_precmd=${name}_start_precmd
15start_postcmd=${name}_start_postcmd
16
17ipropd_master_start_precmd()
18{
19
20	if [ -z "$ipropd_master_slaves" ]; then
21		warn "\$ipropd_master_slaves is empty."
22		return 1
23	fi
24	for _slave in $ipropd_master_slaves; do
25		echo $_slave
26	done > /var/heimdal/slaves || return 1
27	command_args="$command_args \
28	    --keytab=\"$ipropd_master_keytab\" \
29	    --detach \
30	"
31}
32ipropd_master_start_postcmd()
33{
34
35	echo "${name}: slave nodes: $ipropd_master_slaves"
36}
37
38load_rc_config $name
39run_rc_command "$1"
40