ports/security/krb5-devel/files/kdc.in
Cy Schubert 2b1fd74587 Provide a script from which to start krb5kdc through /etc/rc.d/kdc.
Simply add kdc_enable="YES" and kdc_program="/usr/local/sbin/kdc"
to /etc/rc.d. The script removes the Heimdal kdc --detach argument
prior to invoking krb5kdc.

The other approach that was considered was to replace getopt() in
kdc/main.c with getopt_long() however this approach was considered too
intrusive.
2019-02-15 04:37:25 +00:00

5 lines
100 B
Bash

#!/bin/sh -
# $FreeBSD$
set -- $(echo "$*" | sed 's/--detach//')
exec %%PREFIX%%/sbin/krb5kdc "$@"