auditd: add a dependency on systemd-tmpfiles-setup

This is needed so that:
- users have been created (when using systemd-sysusers or userborn)
- /run and /var/run exist
This commit is contained in:
r-vdp 2024-09-04 09:57:27 +02:00
parent 544c97226d
commit 38d73e0c07
No known key found for this signature in database

View File

@ -15,8 +15,15 @@
systemd.services.auditd = {
description = "Linux Audit daemon";
wantedBy = [ "basic.target" ];
before = [ "shutdown.target" ];
wantedBy = [ "sysinit.target" ];
after = [
"local-fs.target"
"systemd-tmpfiles-setup.service"
];
before = [
"sysinit.target"
"shutdown.target"
];
conflicts = [ "shutdown.target" ];
unitConfig = {