xref: /freebsd/libexec/rc/rc.d/ipropd_master (revision a0ca4af9455b844c5e094fc1b09b1390ffa979fc)
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
17: ${ipropd_master_svcj_options:="net_basic"}
18
19ipropd_master_start_precmd()
20{
21
22	if [ -z "$ipropd_master_slaves" ]; then
23		warn "\$ipropd_master_slaves is empty."
24		return 1
25	fi
26	for _slave in $ipropd_master_slaves; do
27		echo $_slave
28	done > /var/heimdal/slaves || return 1
29}
30ipropd_master_start_postcmd()
31{
32
33	echo "${name}: slave nodes: $ipropd_master_slaves"
34}
35
36load_rc_config $name
37
38command_args="$command_args \
39    --keytab=\"$ipropd_master_keytab\" \
40    --detach \
41"
42
43run_rc_command "$1"
44