Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Search found 1 match
- Wed Apr 20, 2016 11:57 am
- Forum: RHEL/CentOS
- Topic: why the folder /var/run/clamav will be deleted automatically after reboot?
- Replies: 6
- Views: 12038
Re: why the folder /var/run/clamav will be deleted automatically after reboot?
My fix:
Edit /lib/systemd/system/clamd.service
[Unit]
Description = clamd scanner (clamd) daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStartPre = /usr/bin/mkdir -p /var/run/clamav
ExecStartPre = /usr/bin/chown -R clam.clam /var/run/clamav
ExecStart ...
Edit /lib/systemd/system/clamd.service
[Unit]
Description = clamd scanner (clamd) daemon
After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
ExecStartPre = /usr/bin/mkdir -p /var/run/clamav
ExecStartPre = /usr/bin/chown -R clam.clam /var/run/clamav
ExecStart ...