Add k5start OpenRC init script

remotes/origin/HEAD
Dustin 2017-05-17 12:13:06 -05:00
parent eb79518ca4
commit 5b5a242bdc
1 changed files with 16 additions and 0 deletions

16
etc/init.d/k5start Executable file
View File

@ -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}"