From 3c31622b606aa1a8a99b26e6917c5eb6e16607cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 7 Sep 2018 11:10:51 +0300 Subject: [PATCH] cli: Fix provisioned systemd service files --- certidude/templates/server/ldap-kinit.service | 2 +- certidude/templates/server/ldap-kinit.timer | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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