summaryrefslogtreecommitdiff
path: root/app-antivirus/clamav/files
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2017-12-24 18:11:31 -0500
committerMike Gilbert <floppym@gentoo.org>2017-12-24 18:11:57 -0500
commit44d72fe2005c1dd48af8d44b12b8cf609db5468a (patch)
tree500f021ab82cfa06d8bc373b48f9bf2fc59288b1 /app-antivirus/clamav/files
parentf8bc607f3c6d5ff2d18c7ab043c9953642a3621b (diff)
downloadgentoo-44d72fe2005c1dd48af8d44b12b8cf609db5468a.tar.gz
gentoo-44d72fe2005c1dd48af8d44b12b8cf609db5468a.tar.xz
app-antivirus/clamav: fixup systemd units
Closes: https://bugs.gentoo.org/627700 Closes: https://github.com/gentoo/gentoo/pull/6621 Package-Manager: Portage-2.3.19_p2, Repoman-2.3.6_p36
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r--app-antivirus/clamav/files/clamd.service11
-rw-r--r--app-antivirus/clamav/files/clamd_at.service3
2 files changed, 11 insertions, 3 deletions
diff --git a/app-antivirus/clamav/files/clamd.service b/app-antivirus/clamav/files/clamd.service
index efdab4314a2..75aa2ccb624 100644
--- a/app-antivirus/clamav/files/clamd.service
+++ b/app-antivirus/clamav/files/clamd.service
@@ -1,7 +1,12 @@
-.include /usr/lib/systemd/system/clamd@.service
-
[Unit]
-Description=Generic ClamAV scanner daemon
+Description=clamd scanner daemon
+After=nss-lookup.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/clamd
+Restart=on-failure
+PrivateTmp=true
[Install]
WantedBy=multi-user.target
diff --git a/app-antivirus/clamav/files/clamd_at.service b/app-antivirus/clamav/files/clamd_at.service
index c5ad8dfa689..9008ba7e82e 100644
--- a/app-antivirus/clamav/files/clamd_at.service
+++ b/app-antivirus/clamav/files/clamd_at.service
@@ -7,3 +7,6 @@ Type=forking
ExecStart=/usr/sbin/clamd -c /etc/clamd%i.conf
Restart=on-failure
PrivateTmp=true
+
+[Install]
+WantedBy=multi-user.target