audit/remote-logging-ordering-cycle.patch
2025-01-10 13:38:13 +01:00

15 lines
799 B
Diff

diff --git a/init.d/auditd.service.in b/init.d/auditd.service.in
index 173795164..853912f61 100644
--- a/init.d/auditd.service.in
+++ b/init.d/auditd.service.in
@@ -16,6 +16,9 @@ Wants=audit-rules.service
## a minimal file that overrides only the necessary lines but inherits the
## original settings in case they get updated by a distribution. Please check
## systemd documentation if it's unclear how to override settings.
+## If using remote logging, ensure that the systemd-update-utmp.service file
+## is updated to remove the After=auditd.service directive to prevent a
+## boot-time ordering cycle.
After=local-fs.target systemd-tmpfiles-setup.service
#After=network-online.target local-fs.target systemd-tmpfiles-setup.service
Before=sysinit.target shutdown.target audit-rules.service