<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Please support connman-ntp as oneshot service"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71922">71922</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Please support connman-ntp as oneshot service
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>philippe.coval@eurogiciel.fr
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>This issue may be more a connman one than systemd
but I put it here since this bugtracker has more visibility.
I though it was a good idea to collect feedback here and
have no objection in marking it invalid or closed.
I Will also cross-post it to connman tracker too
<a href="https://01.org/connman">https://01.org/connman</a>
So here it goes, on the distro I am working on
It was wanted to avoid launching connman-ntp service
(especially if NTP is not wanted by user),
and then use it as a "onshot" service
(see attached file : connman-ntp.service).
But relying on the enabled status of NTP unit providers is not enough,
since those could be installed as "static services"
so we can not rely on this, and the internal state should be queried.
So I had to make systemd query the real connman state,
and then introduce a reference to connman into systemd ;(
I can understand this won't be merged into systemd and
kept agnostic to implementations of NTP services.
So the question is :
Can you suggest a proper/better way to interact with connman-ntp ?
Or what are the plans to have a generic behaviour on NTP ?
I have checked TODO file and this documentation :
<a href="http://www.freedesktop.org/wiki/Software/systemd/timedated/">http://www.freedesktop.org/wiki/Software/systemd/timedated/</a>
Anyway let me share that patch which basically do a dbus call
and update accordingly when in given configuration.
This is fixing issues like unpreserved/inconsistent states
between freedesktop and connman (specially after rebooting).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>