diff options
Diffstat (limited to 'recipes-security/clamav/clamav-0.99.1/clamav.service')
-rw-r--r-- | recipes-security/clamav/clamav-0.99.1/clamav.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-security/clamav/clamav-0.99.1/clamav.service b/recipes-security/clamav/clamav-0.99.1/clamav.service new file mode 100644 index 0000000..f13191f --- /dev/null +++ b/recipes-security/clamav/clamav-0.99.1/clamav.service | |||
@@ -0,0 +1,17 @@ | |||
1 | [Unit] | ||
2 | Description=Clam AntiVirus userspace daemon | ||
3 | Documentation=man:clamd(8) man:clamd.conf(5) http://www.clamav.net/lang/en/doc/ | ||
4 | Requires=clamav-daemon.socket | ||
5 | # Check for database existence | ||
6 | ConditionPathExistsGlob=/usr/share/clamav/main.{c[vl]d,inc} | ||
7 | ConditionPathExistsGlob=/usr/share/clamav/daily.{c[vl]d,inc} | ||
8 | |||
9 | [Service] | ||
10 | ExecStart=/usr/sbin/clamd --foreground=true | ||
11 | # Reload the database | ||
12 | ExecReload=/bin/kill -USR2 $MAINPID | ||
13 | StandardOutput=syslog | ||
14 | |||
15 | [Install] | ||
16 | WantedBy=multi-user.target | ||
17 | Also=clamav-daemon.socket | ||