[systemd-devel] Why working this on reboot but not on start up

Lennart Poettering lennart at poettering.net
Thu Oct 2 03:38:42 PDT 2014


On Thu, 02.10.14 12:34, Günther J. Niederwimmer (gjn at gjn.priv.at) wrote:

> Hello Profis.
> 
> Thank's for the answer.
> 
> Am Donnerstag, 2. Oktober 2014, 12:16:49 schrieb Lennart Poettering:
> > On Tue, 30.09.14 13:24, Günther J. Niederwimmer (gjn at gjn.priv.at) wrote:
> > > Hello,
> > > 
> > > I have a problem to run this correct, it is working on a reboot but not on
> > > start up.
> > > 
> > > Can any help me for this Problem, Thanks.
> > > 
> > > I make a new service File for the kerberos initialisation
> > > 
> > > this is my construct is any wrong in this files?
> > > 
> > > /etc/tmpfiles.d/kinit.conf
> > > d /run/user/0/krb5cc 1777 root root -
> > 
> > This won't work. We nowadays mount /run/user/$UID as a tmpfs at the
> > time of first login of a user, and unmount it at time of last
> > logout. Creating a dir in that directory will hence have little effect
> > during runtime, as it will be overmounted as you log in.
> 
> Is it possible to test if the file / link exist ("/run/user/0/krb5cc/tkt") with 
> systemd and restart when not.

No, this is not available. 

> now I found a way to start kinit on the KVM Clients but not on the Host :(.

Note that this won't work at all with more recent krb versions as they
nowadays use the kernel user keyring to store the tickets in...

But anyway, I am no kerberos guru, I am not sure I grok what you are
trying to do.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list