Add k5start OpenRC init script
parent
eb79518ca4
commit
5b5a242bdc
|
@ -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}"
|
Loading…
Reference in New Issue