When I enter the date command, the time is correct, but the kernel is down. To do this, I need to use the date -k command. ntpd should, but not sync the kernel.Lantis wrote:So what were the steps to test it?
I would have thought ntpd would take care of that side.
Step by step:
1) Set the rule by @ispyisail (I need to adjust it to my GMT+1 time zone):

2) Router default time zone:

3) Set date via ssh using commands:
Code: Select all
date 2019-03-31
date 1:59
date -k
Code: Select all
root@Gargoyle:~# date
Sun Mar 31 01:59:05 CET 2019
root@Gargoyle:~#
Code: Select all
root@Gargoyle:~# date
Sun Mar 31 03:02:09 CEST 2019
root@Gargoyle:~#
root@Gargoyle:~# /usr/bin/set_kernel_timezone
root@Gargoyle:~#
4) Set date via ssh using command:
Code: Select all
date -k
Code: Select all
root@Gargoyle:~# date
Sun Mar 31 03:29:09 CEST 2019
root@Gargoyle:~#
ntpd still running:
Code: Select all
root@Gargoyle:~# ps | grep ntpd
10435 root 1064 S< /usr/sbin/ntpd -n -N -l -S /usr/sbin/ntpd-hotplug -p
11544 root 1064 R grep ntpd
root@Gargoyle:~#