summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/setup/setup_mta.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 20d562c..70b4ddd 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -493,6 +493,9 @@ result_format = "shared+%%s"
if os.path.isfile('/lib/systemd/system/clamd.service'):
clamavservice = 'clamd.service'
+ if os.path.isfile('/lib/systemd/system/clamav-daemon.service'):
+ clamavservice = 'clamav-daemon.service'
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['systemctl', 'restart', 'postfix.service'])
subprocess.call(['systemctl', 'restart', amavisservice])