Fix ipa-ccache-sweeper activation timer and clean up service file
Added OnActiveSec=12h to start the timer cycle because OnUnitActiveSec setting alone never triggers the timer after boot as there has not been transition between active and inactive state. Removed [Install] section from sweeper.service as it is not needed Fixes: https://pagure.io/freeipa/issue/9231 Signed-off-by: Jesse Sandberg <jesse.sandberg@netcode.fi> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
1 parent
ad8f90f816
commit
fa85301895
2 files changed
+1
-3
No files matched your search
@@ -8,6 +8,3 @@ Environment=LC_ALL=C.UTF-8
|
|||||||
ExecStart=@libexecdir@/ipa/ipa-ccache-sweeper
|
ExecStart=@libexecdir@/ipa/ipa-ccache-sweeper
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
User=ipaapi
|
User=ipaapi
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
Description=Remove Expired Kerberos Credential Caches
|
Description=Remove Expired Kerberos Credential Caches
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
|
OnActiveSec=12h
|
||||||
OnUnitActiveSec=12h
|
OnUnitActiveSec=12h
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in new issue
Block a user