Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197872 - net-mail/dovecot kills itself when ntp-client moves time backwards
Summary: net-mail/dovecot kills itself when ntp-client moves time backwards
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 13:14 UTC by James Pattinson
Modified: 2007-11-02 13:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Pattinson 2007-11-02 13:14:03 UTC
After my system last rebooted, dovecot died after my clock went backwards:

Nov  2 13:01:01 prdmail ntpdate[4327]: step time server 87.32.12.19 offset -7.506207 sec
Nov  2 13:01:01 prdmail dovecot: Time just moved backwards by 7 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards

This happened on subsequent boots also, as my hardware clock must be out compared to my NTP source.

Can we update /etc/init.d/dovecot to have it start AFTER ntpd and ntp-client?

depend() {
    need net
    after saslauthd ldap slapd postgresql mysql ntpd ntp-client
    use logger
}

Worked for me.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-02 13:20:09 UTC
Don't use ntp-client/ntpdate, use ntpd properly instead... Anyway, this behaviour is stupid and a dovecot bug.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-11-02 13:40:01 UTC
Fixed thanks.