Re: Packagers - Flag day 2016 Important changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message -----
> From: "Randy Barlow" <bowlofeggs@xxxxxxxxxxxxxxxxx>
> To: devel@xxxxxxxxxxxxxxxxxxxxxxx
> Sent: Wednesday, December 14, 2016 5:45:29 AM
> Subject: Re: Packagers - Flag day 2016 Important changes
> 
> On Mon, 2016-12-12 at 14:33 -0700, Kevin Fenzi wrote:
> > First, I'll note you don't need to get a new ticket every day, you
> > can
> > just renew with 'kinit -R'. I am not sure what env kinit needs, but
> > you
> > may even be able to do this from a cron job. That will work for 1
> > week.
> 
> You can even use systemd timers to do it! You can make these files:
> 
> [rbarlow@ohm ~]$ cat ~/.config/systemd/user/kinit-R.service
> [Unit]
> Description=Renew Kerberos ticket
> 
> [Service]
> ExecStart=/usr/bin/kinit -R
> Type=oneshot
> 
> [Install]
> WantedBy=default.target
> [rbarlow@ohm ~]$ cat ~/.config/systemd/user/kinit-R.timer
> [Unit]
> Description=Renew Kerberos ticket every four hours
> 
> [Timer]
> OnBootSec=15min
> OnUnitActiveSec=4h
> 
> [Install]
> WantedBy=timers.target
> 
> Then you need to enable the timer:
> 
> $ systemctl --user enable kinit-R.timer
> 
> Hope that helps!

Alternatively you can use `krenew`[1] command which can do periodical renewal (if needed) and can run in background(`krenew -i -K 60 -L -b` WFM).

It's packaged in `kstart` package.

[1] https://linux.die.net/man/1/krenew

Pavel Valena
Associate Software Engineer
Brno, Czech Republic

RED HAT | TRIED. TESTED. TRUSTED.
All of the airlines in the Fortune Global 500 rely on Red Hat.
Find out why at Trusted | Red Hat

<http://www.redhat.com/en/about/trusted>
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux