5af5b2
#!/bin/sh
5af5b2
#
5af5b2
#  Check for error conditions which the init system expects us to check and
5af5b2
#  for other common errors, and exit with the expected status codes.
5af5b2
#
5af5b2
kadmind=/usr/sbin/kadmind
5af5b2
if test -f /var/kerberos/krb5kdc/kpropd.acl ; then
5af5b2
	echo $"Error. This appears to be a slave server, found kpropd.acl"
5af5b2
	exit 6
5af5b2
fi
5af5b2
if ! test -x "$kadmind" ; then
5af5b2
	exit 5
5af5b2
fi
5af5b2
exec "$kadmind" "$@"