diff options
author | Someone Serge <sergei.kozlukov@aalto.fi> | 2023-11-26 22:38:14 +0000 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-11-28 14:21:30 +0000 |
commit | d97d2fb271e4d9d0f86cf704c6d9fb3aa851d80d (patch) | |
tree | 07af7493b5b03e6fa26f6854637c4b0cae298422 /nixos | |
parent | bdba516867b8522af43eeabde1ba3bfb494d9007 (diff) |
nixos/clamav: ensure freshclam starts before clamav (if enabled)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/clamav.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/security/clamav.nix b/nixos/modules/services/security/clamav.nix index c3893f4b09b20..72a195d3a04ed 100644 --- a/nixos/modules/services/security/clamav.nix +++ b/nixos/modules/services/security/clamav.nix @@ -145,7 +145,8 @@ in systemd.services.clamav-daemon = mkIf cfg.daemon.enable { description = "ClamAV daemon (clamd)"; - after = optional cfg.updater.enable "clamav-freshclam.service"; + after = optionals cfg.updater.enable [ "clamav-freshclam.service" ]; + wants = optionals cfg.updater.enable [ "clamav-freshclam.service" ]; wantedBy = [ "multi-user.target" ]; restartTriggers = [ clamdConfigFile ]; |