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