Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 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 |