From 5b5a242bdc49ea2fefe9ca77eb457e2be079af7d Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 17 May 2017 12:13:06 -0500 Subject: [PATCH] Add k5start OpenRC init script --- etc/init.d/k5start | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 etc/init.d/k5start 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}"