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!

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to