initial commit of file from CVS for smeserver-clamav on Mon 10 Jul 08:35:52 BST 2023
This commit is contained in:
20
root/usr/lib/systemd/system/clamd.service
Normal file
20
root/usr/lib/systemd/system/clamd.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
# New service file specifically for SME
|
||||
# Copied from clamav install file
|
||||
Description=clamd scanner (%i) daemon
|
||||
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
|
||||
After=syslog.target nss-lookup.target network.target
|
||||
|
||||
[Service]
|
||||
Type = forking
|
||||
ExecStartPre=/sbin/e-smith/service-status clamd
|
||||
ExecStartPre=-/sbin/e-smith/expand-template /etc/clamd.d/scan.conf
|
||||
ExecStart=/usr/sbin/clamd -c /etc/clamd.d/scan.conf
|
||||
# Reload the database
|
||||
ExecReload=/bin/kill -USR2 $MAINPID
|
||||
Restart=on-failure
|
||||
TimeoutStartSec=420
|
||||
|
||||
[Install]
|
||||
WantedBy=sme-server.target
|
||||
|
0
root/usr/lib/systemd/system/clamd.service.d/.gitignore
vendored
Normal file
0
root/usr/lib/systemd/system/clamd.service.d/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
[Service]
|
||||
# we do not allow mulitple instance on Koozali SME Server
|
||||
ExecStart=
|
||||
ExecStart=/bin/false
|
||||
|
19
root/usr/lib/systemd/system/freshclam.service
Normal file
19
root/usr/lib/systemd/system/freshclam.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[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
|
Reference in New Issue
Block a user