20 lines
		
	
	
		
			564 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			564 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=ClamAV virus database updater
 | 
						|
Documentation=man:freshclam(1) man:freshclam.conf(5) https://www.clamav.net/documents
 | 
						|
 | 
						|
# Note we have /etc/cron.d/clamav-update ?
 | 
						|
# If user wants it run from cron, don't start the daemon.
 | 
						|
ConditionPathExists=!/etc/cron.d/clamav-freshclam
 | 
						|
Wants=network-online.target
 | 
						|
After=network-online.target
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=forking
 | 
						|
ExecStartPre=/sbin/e-smith/service-status freshclam
 | 
						|
ExecStart=/usr/bin/freshclam -d --config-file=/etc/freshclam.conf
 | 
						|
Restart=on-failure
 | 
						|
StandardOutput=syslog
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=sme-server.target
 |