[OpenAFS] k5start and AFS tokens

Jaap Winius jwinius@umrk.nl
Sun, 28 Sep 2014 23:31:39 +0200


Quoting Dirk Heinrichs <dirk.heinrichs@altum.de>:

> You don't let k5start start your zz daemon. IOW: You don't do the  
> "start" part of k5start, only the "k5" part.

Okay, how about this?

   start-stop-daemon --start --pidfile /run/zz/k5start-zz.pid \
     --chuid $USER:$GROUP --exec /usr/bin/k5start -- -b \
     -p /run/zz/k5start-zz.pid \
     -K 10 -l 24h -k /tmp/krb5cc_107 -o zz \
     -L -t -U -f /etc/krb5-zz.keytab \
     $($DAEMON $DAEMON_ARGS) || return 2

This still produces a second PID files, /run/zz/k5start-zz.pid, in  
addition the one specified for the zz daemon in $DAEMON_ARGS, so one  
start-stop-daemon invocation is used to shut the zz process and the  
other k5start.

Cheers,

Jaap