Should ntpd be used on Raspbian Stretch?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
It was installed by default on the previous distributions (jessie, wheezy, etc), but it is not so on stretch. Before installing it, I wish to know whether there is some other preferred means to ensure time is synchronized. I just recently discovered the timesyncd daemon, however, it does not appear to be setup. Is timesyncd what should now be used? If neither ntpd or timesyncd is running, how does the RPi keep time synchronized?
debian systemd raspberry-pi time ntpd
add a comment |Â
up vote
1
down vote
favorite
It was installed by default on the previous distributions (jessie, wheezy, etc), but it is not so on stretch. Before installing it, I wish to know whether there is some other preferred means to ensure time is synchronized. I just recently discovered the timesyncd daemon, however, it does not appear to be setup. Is timesyncd what should now be used? If neither ntpd or timesyncd is running, how does the RPi keep time synchronized?
debian systemd raspberry-pi time ntpd
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
@JeffSchaller so go withNTP
ortimesync
?
â user1032531
Nov 21 '17 at 13:46
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
It was installed by default on the previous distributions (jessie, wheezy, etc), but it is not so on stretch. Before installing it, I wish to know whether there is some other preferred means to ensure time is synchronized. I just recently discovered the timesyncd daemon, however, it does not appear to be setup. Is timesyncd what should now be used? If neither ntpd or timesyncd is running, how does the RPi keep time synchronized?
debian systemd raspberry-pi time ntpd
It was installed by default on the previous distributions (jessie, wheezy, etc), but it is not so on stretch. Before installing it, I wish to know whether there is some other preferred means to ensure time is synchronized. I just recently discovered the timesyncd daemon, however, it does not appear to be setup. Is timesyncd what should now be used? If neither ntpd or timesyncd is running, how does the RPi keep time synchronized?
debian systemd raspberry-pi time ntpd
asked Nov 20 '17 at 13:09
user1032531
518621
518621
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
@JeffSchaller so go withNTP
ortimesync
?
â user1032531
Nov 21 '17 at 13:46
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44
add a comment |Â
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
@JeffSchaller so go withNTP
ortimesync
?
â user1032531
Nov 21 '17 at 13:46
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
@JeffSchaller so go with
NTP
or timesync
?â user1032531
Nov 21 '17 at 13:46
@JeffSchaller so go with
NTP
or timesync
?â user1032531
Nov 21 '17 at 13:46
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
-2
down vote
The pi does not have a hardware clock, afaik, so ntpd
OR timesync
are mandatory. Given systemd
's track record, I would stick with ntpd
.
Systemd track record: http://www.cvedetails.com/cve/CVE-2017-15908/
You may claim, yeah, all software is vulnerable and I say fine.
However, systemd team wrote their own code instead of using road-worn glic code. Amusingly, glibc had this exact same issue some years prior ...
Why develop time-sync if you have ntpd ? I don't know of a logical explanation. I would create a systemd unit that starts ntpd to keep time and disable timesync. That is just me, I have my reasons as outlined above.
Thanks thecarpy, Asdate
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neitherntpd
ortimesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?
â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I havetime-sync.target
as output ofsystemctl | grep time
, you don't ?
â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things likesystemctl status timesync
.
â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty fromsystemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-2
down vote
The pi does not have a hardware clock, afaik, so ntpd
OR timesync
are mandatory. Given systemd
's track record, I would stick with ntpd
.
Systemd track record: http://www.cvedetails.com/cve/CVE-2017-15908/
You may claim, yeah, all software is vulnerable and I say fine.
However, systemd team wrote their own code instead of using road-worn glic code. Amusingly, glibc had this exact same issue some years prior ...
Why develop time-sync if you have ntpd ? I don't know of a logical explanation. I would create a systemd unit that starts ntpd to keep time and disable timesync. That is just me, I have my reasons as outlined above.
Thanks thecarpy, Asdate
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neitherntpd
ortimesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?
â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I havetime-sync.target
as output ofsystemctl | grep time
, you don't ?
â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things likesystemctl status timesync
.
â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty fromsystemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
add a comment |Â
up vote
-2
down vote
The pi does not have a hardware clock, afaik, so ntpd
OR timesync
are mandatory. Given systemd
's track record, I would stick with ntpd
.
Systemd track record: http://www.cvedetails.com/cve/CVE-2017-15908/
You may claim, yeah, all software is vulnerable and I say fine.
However, systemd team wrote their own code instead of using road-worn glic code. Amusingly, glibc had this exact same issue some years prior ...
Why develop time-sync if you have ntpd ? I don't know of a logical explanation. I would create a systemd unit that starts ntpd to keep time and disable timesync. That is just me, I have my reasons as outlined above.
Thanks thecarpy, Asdate
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neitherntpd
ortimesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?
â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I havetime-sync.target
as output ofsystemctl | grep time
, you don't ?
â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things likesystemctl status timesync
.
â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty fromsystemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
add a comment |Â
up vote
-2
down vote
up vote
-2
down vote
The pi does not have a hardware clock, afaik, so ntpd
OR timesync
are mandatory. Given systemd
's track record, I would stick with ntpd
.
Systemd track record: http://www.cvedetails.com/cve/CVE-2017-15908/
You may claim, yeah, all software is vulnerable and I say fine.
However, systemd team wrote their own code instead of using road-worn glic code. Amusingly, glibc had this exact same issue some years prior ...
Why develop time-sync if you have ntpd ? I don't know of a logical explanation. I would create a systemd unit that starts ntpd to keep time and disable timesync. That is just me, I have my reasons as outlined above.
The pi does not have a hardware clock, afaik, so ntpd
OR timesync
are mandatory. Given systemd
's track record, I would stick with ntpd
.
Systemd track record: http://www.cvedetails.com/cve/CVE-2017-15908/
You may claim, yeah, all software is vulnerable and I say fine.
However, systemd team wrote their own code instead of using road-worn glic code. Amusingly, glibc had this exact same issue some years prior ...
Why develop time-sync if you have ntpd ? I don't know of a logical explanation. I would create a systemd unit that starts ntpd to keep time and disable timesync. That is just me, I have my reasons as outlined above.
edited Nov 23 '17 at 13:40
answered Nov 20 '17 at 13:14
thecarpy
2,210824
2,210824
Thanks thecarpy, Asdate
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neitherntpd
ortimesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?
â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I havetime-sync.target
as output ofsystemctl | grep time
, you don't ?
â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things likesystemctl status timesync
.
â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty fromsystemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
add a comment |Â
Thanks thecarpy, Asdate
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neitherntpd
ortimesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?
â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I havetime-sync.target
as output ofsystemctl | grep time
, you don't ?
â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things likesystemctl status timesync
.
â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty fromsystemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
Thanks thecarpy, As
date
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neither ntpd
or timesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?â user1032531
Nov 20 '17 at 13:24
Thanks thecarpy, As
date
displays the correct time and as you indicate there is no on-board hardware clock, something is keeping time synchronized. But neither ntpd
or timesync
seem to be doing so. Maybe I am not checking correctly. Recommendations how I should check?â user1032531
Nov 20 '17 at 13:24
Hm, on my pi, I have
time-sync.target
as output of systemctl | grep time
, you don't ?â thecarpy
Nov 20 '17 at 13:49
Hm, on my pi, I have
time-sync.target
as output of systemctl | grep time
, you don't ?â thecarpy
Nov 20 '17 at 13:49
Ah, yes I do. I am new to systemctl still, and was trying things like
systemctl status timesync
.â user1032531
Nov 20 '17 at 13:52
Ah, yes I do. I am new to systemctl still, and was trying things like
systemctl status timesync
.â user1032531
Nov 20 '17 at 13:52
On my system (Stretch Lite), that target seems empty from
systemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
On my system (Stretch Lite), that target seems empty from
systemctl list-dependencies time-sync.target
â Elliott B
Aug 7 at 5:45
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405770%2fshould-ntpd-be-used-on-raspbian-stretch%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
The Debian Handbook still refers to NTP.
â Jeff Schaller
Nov 20 '17 at 18:51
@JeffSchaller so go with
NTP
ortimesync
?â user1032531
Nov 21 '17 at 13:46
I'm not a Debian expert, so I would go with what their handbook says. If there's discussions underway to convert from NTP to timesync, I didn't find any (that doesn't mean there isn't -- just that I didn't find it).
â Jeff Schaller
Nov 21 '17 at 14:08
@JeffSchaller My gut feel is timesync is likely preferred for a client only.
â user1032531
Nov 21 '17 at 23:44