{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/1329","labels_url":"https://api.github.com/repos/systemd/systemd/issues/1329/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/1329/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/1329/events","html_url":"https://github.com/systemd/systemd/issues/1329","id":107690569,"number":1329,"title":"timedatectl: reports ntp enabled even if it is not ","user":{"login":"adrelanos","id":1985040,"avatar_url":"https://avatars.githubusercontent.com/u/1985040?v=3","gravatar_id":"","url":"https://api.github.com/users/adrelanos","html_url":"https://github.com/adrelanos","followers_url":"https://api.github.com/users/adrelanos/followers","following_url":"https://api.github.com/users/adrelanos/following{/other_user}","gists_url":"https://api.github.com/users/adrelanos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrelanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrelanos/subscriptions","organizations_url":"https://api.github.com/users/adrelanos/orgs","repos_url":"https://api.github.com/users/adrelanos/repos","events_url":"https://api.github.com/users/adrelanos/events{/privacy}","received_events_url":"https://api.github.com/users/adrelanos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/not-a-bug","name":"not-a-bug","color":"009800"},{"url":"https://api.github.com/repos/systemd/systemd/labels/timesync","name":"timesync","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-22T10:58:55Z","updated_at":"2015-09-22T11:35:18Z","closed_at":null,"body":"Created a drop-in file to disable systemd-timesyncd.\r\n\r\n`cat /lib/systemd/system/systemd-timesyncd.service.d/40_off.conf`\r\n```\r\n[Unit]\r\nConditionPathExists=!/lib/systemd/system/systemd-timesyncd.service.d/40_off.conf\r\n```\r\n\r\n`timedatectl set-ntp true`\r\n\r\nIt works as expected.\r\n\r\n`sudo systemctl status systemd-timesyncd.service`\r\n```\r\n● systemd-timesyncd.service - Network Time Synchronization\r\n   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled)\r\n  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d\r\n           └─40_off.conf\r\n   Active: inactive (dead)\r\n           start condition failed at Tue 2015-09-22 10:54:47 UTC; 29s ago\r\n           ConditionPathExists=!/lib/systemd/system/systemd-timesyncd.service.d/40_off.conf was not met\r\n     Docs: man:systemd-timesyncd.service(8)\r\n```\r\n\r\nBut timedatectl still reports ntp enabled even if it is not.\r\n\r\n`timedatectl`\r\n```\r\n      Local time: Tue 2015-09-22 10:55:27 UTC\r\n  Universal time: Tue 2015-09-22 10:55:27 UTC\r\n        RTC time: n/a\r\n       Time zone: Etc/UTC (UTC, +0000)\r\n     NTP enabled: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n      DST active: n/a\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/142260903","html_url":"https://github.com/systemd/systemd/issues/1329#issuecomment-142260903","issue_url":"https://api.github.com/repos/systemd/systemd/issues/1329","id":142260903,"user":{"login":"adrelanos","id":1985040,"avatar_url":"https://avatars.githubusercontent.com/u/1985040?v=3","gravatar_id":"","url":"https://api.github.com/users/adrelanos","html_url":"https://github.com/adrelanos","followers_url":"https://api.github.com/users/adrelanos/followers","following_url":"https://api.github.com/users/adrelanos/following{/other_user}","gists_url":"https://api.github.com/users/adrelanos/gists{/gist_id}","starred_url":"https://api.github.com/users/adrelanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrelanos/subscriptions","organizations_url":"https://api.github.com/users/adrelanos/orgs","repos_url":"https://api.github.com/users/adrelanos/repos","events_url":"https://api.github.com/users/adrelanos/events{/privacy}","received_events_url":"https://api.github.com/users/adrelanos/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:35:18Z","updated_at":"2015-09-22T11:35:18Z","body":"Even after `sudo systemctl disable systemd-timesyncd`, `timedatectl` reports ntp still being enabled.\r\n\r\n```\r\n~ $ timedatectl\r\n      Local time: Tue 2015-09-22 11:34:30 UTC\r\n  Universal time: Tue 2015-09-22 11:34:30 UTC\r\n        RTC time: n/a\r\n       Time zone: Etc/UTC (UTC, +0000)\r\n     NTP enabled: no\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n      DST active: n/a\r\n~ $ timedatectl set-ntp 1\r\n~ $ timedatectl\r\n      Local time: Tue 2015-09-22 11:34:31 UTC\r\n  Universal time: Tue 2015-09-22 11:34:31 UTC\r\n        RTC time: n/a\r\n       Time zone: Etc/UTC (UTC, +0000)\r\n     NTP enabled: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n      DST active: n/a\r\n~ $ sudo systemctl disable systemd-timesyncd\r\nRemoved symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service.\r\n~ $ sudo systemctl status systemd-timesyncd\r\n● systemd-timesyncd.service - Network Time Synchronization\r\n   Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; disabled)\r\n  Drop-In: /lib/systemd/system/systemd-timesyncd.service.d\r\n           └─40_off.conf\r\n   Active: inactive (dead)\r\n     Docs: man:systemd-timesyncd.service(8)\r\n\r\nSep 22 10:51:49 work systemd[1]: Started Network Time Synchronization.\r\nSep 22 10:51:49 work systemd-timesyncd[1873]: Using NTP server 85.114.130.211:123 (0.debian.pool.ntp.org).\r\nSep 22 10:51:49 work systemd-timesyncd[1873]: interval/delta/delay/jitter/drift 64s/-0.002s/0.034s/0.000s/-13ppm\r\nSep 22 10:52:53 work systemd-timesyncd[1873]: interval/delta/delay/jitter/drift 128s/+0.001s/0.034s/0.000s/-11ppm\r\nSep 22 10:54:38 work systemd[1]: Stopping Network Time Synchronization...\r\nSep 22 10:54:38 work systemd[1]: Stopped Network Time Synchronization.\r\nSep 22 10:54:47 work systemd[1]: Started Network Time Synchronization.\r\nSep 22 11:30:11 work systemd[1]: Started Network Time Synchronization.\r\nSep 22 11:33:22 work systemd[1]: Stopped Network Time Synchronization.\r\nSep 22 11:34:31 work systemd[1]: Started Network Time Synchronization.\r\n~ $ timedatectl\r\n      Local time: Tue 2015-09-22 11:34:31 UTC\r\n  Universal time: Tue 2015-09-22 11:34:31 UTC\r\n        RTC time: n/a\r\n       Time zone: Etc/UTC (UTC, +0000)\r\n     NTP enabled: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n      DST active: n/a\r\n```\r\n"}}