The original kdc.sh.sample script provided to run a Heimdal KDC on FreeBSD isn't a "FreeBSD style" rc script. To be able to use it you need to edit the content of the rc script and your need to rename it. And in my case, the edited script work in command line but don't work to start service at load. I've rewrite the script to be compatible with the rc load system and split it in three parts, kdc, kpasswd and ipropd to stick to the original MIT KDC scripts. But it can be edited to be join in only one file but with less controls on service restart I attach my scripts to this PR, feel free to use. Fix: Patch attached with submission follows:
Maintainer of security/heimdal, Please note that PR ports/176805 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176805 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->rodrigo I'll take it.
sounds relevant but this must be validate by someone who really uses heimdal.
A commit references this bug: Author: hrs Date: Tue Sep 16 05:53:11 UTC 2014 New revision: 368294 URL: http://svnweb.freebsd.org/changeset/ports/368294 Log: Add ipropd_master and ipropd_slave rc.d scripts for branches which do not have them. PR: 176805 Changes: head/security/heimdal/Makefile head/security/heimdal/files/ipropd_master.in head/security/heimdal/files/ipropd_slave.in
kdc.sh has been removed because it has style problems as you pointed out. Scripts in base system, /etc/rc.d/kerberos (on 8, 9, 10) and /etc/rc.d/kdc (on 11) work with this port. For iprop services, ipropd_master and iprod_slave scripts are added.