Should ntpd be used on Raspbian Stretch?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question




















  • 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










  • 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














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?







share|improve this question




















  • 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










  • 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












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?







share|improve this question












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?









share|improve this question











share|improve this question




share|improve this question










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 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










  • @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











  • @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










  • @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










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.






share|improve this answer






















  • 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










  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























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.






share|improve this answer






















  • 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










  • 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














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.






share|improve this answer






















  • 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










  • 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












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.






share|improve this answer














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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 '17 at 13:40

























answered Nov 20 '17 at 13:14









thecarpy

2,210824




2,210824











  • 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










  • 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
















  • 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










  • 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















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

















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay