Weird syslog time issues on Alpine 3.4

1 post / 0 new
#1 Mon, 2016-11-28 12:48
filsav
  • filsav's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2016-11-25

Hello. I am experiencing timing issue in syslog:

manat2 [~]# service syslog restart
 * WARNING: you are stopping a boot service
 * Stopping busybox syslog ... [ ok ]
 * Starting busybox syslog ... [ ok ]
manat2 [~]# logger test
manat2 [~]# service crond start
 * Starting busybox crond ...  [ ok ]
manat2 [~]# date
Mon Nov 28 13:30:17 EET 2016 

Looking into /var/log/messages:

Nov 28 11:26:24 manat2 daemon.warn /etc/init.d/syslog[2010]: WARNING: you are stopping a boot service
Nov 28 13:26:24 manat2 syslog.info syslogd exiting
Nov 28 13:26:24 manat2 syslog.info syslogd started: BusyBox v1.25.1
Nov 28 11:26:42 manat2 user.notice root: test
Nov 28 11:27:51 manat2 cron.info crond[2115]: crond (busybox 1.25.1) started, log level 8
Nov 28 11:30:00 manat2 cron.info crond[2115]: USER root pid 2125 cmd run-parts /etc/periodic/15min

I have bold'ed wrong times (it seems they're UTC, while I am at EET, and configured /etc/localtime from tzdata-2016i-r0 apk Europe/Vilnius).
Userland logger logs wrong time, as is cron. Others, including dnsmasq reporting correct time in syslog.
Please, help me understand is this bug or just misconfiguration.

Thanks,
Filip.