diff --git a/certidude/templates/server/ldap-kinit.service b/certidude/templates/server/ldap-kinit.service index 220a82b..864b711 100644 --- a/certidude/templates/server/ldap-kinit.service +++ b/certidude/templates/server/ldap-kinit.service @@ -1,7 +1,7 @@ [Unit] Description=Initialize Kerberos credential cache for LDAP connections of Certidude +Before=certidude-backend.service [Service] Type=oneshot ExecStart={{ certidude_path }} housekeeping kinit -Before=certidude-backend.service diff --git a/certidude/templates/server/ldap-kinit.timer b/certidude/templates/server/ldap-kinit.timer index ca42dca..44931b9 100644 --- a/certidude/templates/server/ldap-kinit.timer +++ b/certidude/templates/server/ldap-kinit.timer @@ -1,3 +1,7 @@ [Timer] -OnCalendar=00/8:30 Persistent=true +OnBootSec=3sec +OnUnitActiveSec=8h + +[Install] +WantedBy=multi-user.target