All systemd units now restart on failure

This commit is contained in:
2021-07-18 03:41:24 +00:00
parent 1559e309fe
commit 201c52ed03
3 changed files with 39 additions and 0 deletions
@@ -0,0 +1,14 @@
[Unit]
Description=ClamAV virus database updater
Documentation=man:freshclam(1) man:freshclam.conf(5) https://www.clamav.net/documents
# If user wants it run from cron, don't start the daemon.
ConditionPathExists=!/etc/cron.d/clamav-update
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/freshclam -d --foreground=true
Restart=on-failure
[Install]
WantedBy=multi-user.target