diff --git a/etc/init.d/k5start b/etc/init.d/k5start new file mode 100755 index 0000000..072e1db --- /dev/null +++ b/etc/init.d/k5start @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# vim: set ft=gentoo-init-d : + +: "${KRB5_KEYTAB:=/etc/krb5.keytab}" +: "${KRB5_PRINCIPAL:=$(hostname | cut -d. -f1 | tr "a-z" "A-Z")\$}" +: ${K5START_INTERVAL:=30} + +depend() { + before netmount +} + +pidfile=/run/k5start.pid +command=/usr/bin/k5start +command_args="-p ${pidfile} -b -K ${K5START_INTERVAL} -f ${KRB5_KEYTAB} \ + ${KRB5_PRINCIPAL}" +required_files="${KRB5_KEYTAB}"