[opensuse-arm] Problem with freshclam and clamd and ntp
I am trying to set up a mail server on my RPi and need freshclam and clamd. A problem seems to be that they start before ntp has properly set the date and time. I tried adding in the files /usr/lib/systemd/system/freshclam.service and /usr/lib/systemd/system/clamd.service that they should run after finishing the ntpd.service and also tried ntp-wait.service but that did not work. When asking for the systemctl status for these services I still see log entries with "Jan 01" as date. Only the last log line has the than current date. Any suggestions? -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Op woensdag 26 november 2014 12:08:53 schreef Freek de Kruijf:
I am trying to set up a mail server on my RPi and need freshclam and clamd. A problem seems to be that they start before ntp has properly set the date and time.
I tried adding in the files /usr/lib/systemd/system/freshclam.service and /usr/lib/systemd/system/clamd.service that they should run after finishing the ntpd.service and also tried ntp-wait.service but that did not work. When asking for the systemctl status for these services I still see log entries with "Jan 01" as date. Only the last log line has the than current date.
Enabling the debug log in clamd I found that clamd takes a very long time to start. This triggers the timeout in systemd, which allows only 90s for a process to start. So I did put a line TimeoutStartSec=600s in the file /usr/lib/systemd/system/clamd.service which allows more time for clamd to finish properly. When looking at the log 270s should be enough. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Op vrijdag 28 november 2014 12:35:05 schreef Freek de Kruijf:
Op woensdag 26 november 2014 12:08:53 schreef Freek de Kruijf:
I am trying to set up a mail server on my RPi and need freshclam and clamd. A problem seems to be that they start before ntp has properly set the date and time.
I tried adding in the files /usr/lib/systemd/system/freshclam.service and /usr/lib/systemd/system/clamd.service that they should run after finishing the ntpd.service and also tried ntp-wait.service but that did not work. When asking for the systemctl status for these services I still see log entries with "Jan 01" as date. Only the last log line has the than current date.
Enabling the debug log in clamd I found that clamd takes a very long time to start. This triggers the timeout in systemd, which allows only 90s for a process to start. So I did put a line TimeoutStartSec=600s in the file /usr/lib/systemd/system/clamd.service which allows more time for clamd to finish properly. When looking at the log 270s should be enough.
At first I had the idea the problem came from the fact that freshclam and clamd showed dates in its log at moments ntp did not set the time properly. So still Jan 01, 1970 was shown. But this appears not to be a problem at all. So only the long time it takes for clamd to load is the problem. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (1)
-
Freek de Kruijf