nixos/clamav: ensure freshclam starts before clamav (if enabled)

This commit is contained in:
Someone Serge 2023-11-26 22:38:14 +00:00 committed by Yt
parent bdba516867
commit d97d2fb271

View File

@ -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 ];