Не запускается clamv - unrecognized option `--nofork=yes'
Не запускается clamv - unrecognized option `--nofork=yes'
Как то так обнаружил что clamv не запущен, глянул в логи и там матерь божя, шпарит и шпарит... Понятно что ругается на опцию, но где она указа немогу найти и почему она указана. Сервис работал нормально.
Sep 8 22:21:38 xxxxxxxx clamd: ERROR: Unknown option passed
Sep 8 22:21:38 xxxxxxxx clamd: ERROR: Can't parse command line options
Sep 8 22:21:38 xxxxxxxx systemd: clamd.service: main process exited, code=exited, status=1/FAILURE
Sep 8 22:21:38 xxxxxxxx systemd: Unit clamd.service entered failed state.
Sep 8 22:21:38 xxxxxxxx systemd: clamd.service failed.
Sep 8 22:21:39 xxxxxxxx systemd: clamd.service holdoff time over, scheduling restart.
Sep 8 22:21:39 xxxxxxxx systemd: Started clamd scanner (clamd) daemon.
Sep 8 22:21:39 xxxxxxxx systemd: Starting clamd scanner (clamd) daemon...
Sep 8 22:21:39 xxxxxxxx clamd: /usr/sbin/clamd: unrecognized option `--nofork=yes'
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Дебиан?
Можно попробовать вот такой фикс
(файл /etc/systemd/system/clamd.service лучше скопировать от греха куда-нибудь)
Я так понимаю, обновился clamav и часть опций порезали.
Пробуйте.
Можно попробовать вот такой фикс
(файл /etc/systemd/system/clamd.service лучше скопировать от греха куда-нибудь)
Code: Select all
cp /etc/systemd/system/clamd.service /root/
perl -pi -e 's|nofork|foreground|g' /etc/systemd/system/clamd.service
systemctl daemon-reload
systemctl restart clamd.service
Пробуйте.
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Нет, СentOs 7. Хорошо, попробую.
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Да, все в порядке. Спасибо! Только пути к файлу отличаются. На CentOS это /usr/lib/systemd/system/clamd.service
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Отлично.one wrote:Да, все в порядке. Спасибо! Только пути к файлу отличаются. На CentOS это /usr/lib/systemd/system/clamd.service
А это новая установка была или обновление панели и софтов?
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Я затрудняюсь сказать, скорее всего после обновления т.к. по новой я ничего не ставил на сервере.
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Спасибо за помощь.one wrote:Я затрудняюсь сказать, скорее всего после обновления т.к. по новой я ничего не ставил на сервере.
Завел баг - https://bugs.vestacp.com/issues/393 - проверим.
Re: Не запускается clamv - unrecognized option `--nofork=yes'
This bug does not exists on Debian 8.
It's already configured with 'foreground' option.
It's already configured with 'foreground' option.
Re: Не запускается clamv - unrecognized option `--nofork=yes'
On one CentOS 7.2 server I also must run this:
mkdir /var/run/clamav
chown -R clam /var/run/clamav
service clamd restart
And I'm afraid that this must be run after each server reboot.
Please let somebody check it... I'm not using CentOS..
mkdir /var/run/clamav
chown -R clam /var/run/clamav
service clamd restart
And I'm afraid that this must be run after each server reboot.
Please let somebody check it... I'm not using CentOS..
Re: Не запускается clamv - unrecognized option `--nofork=yes'
Just to confirm this - after every reboot I must run these three commands in order to fix issue.dpeca wrote:On one CentOS 7.2 server I also must run this:
mkdir /var/run/clamav
chown -R clam /var/run/clamav
service clamd restart
And I'm afraid that this must be run after each server reboot.