[pkg-ntp-maintainers] Bug#806556: ntpdate: Wrong lock file

Kurt Roeckx kurt at roeckx.be
Sat Nov 28 20:32:50 UTC 2015


Package: ntpdate
Version: 1:4.2.8p4+dfsg-3

In /etc/network/if-up.d/ntpdate we have:
# Avoid running more than one at a time
flock -n /run/lock/ntpdate /usr/sbin/ntpdate-debian -s $OPTS 2>/dev/null || :


But in /etc/init.d/ntp we have:
LOCKFILE=/var/lock/ntpdate

lock_ntpdate() {
        if [ -x /usr/bin/lockfile-create ]; then
                lockfile-create $LOCKFILE
                lockfile-touch $LOCKFILE &


This might be related to some other bug report.


Kurt



More information about the pkg-ntp-maintainers mailing list