<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:dh.herrmann@gmail.com" title="David Herrmann <dh.herrmann@gmail.com>"> <span class="fn">David Herrmann</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - hostnamed should emit PropertyChanged for Hostname property"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83930">bug 83930</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>dh.herrmann@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - hostnamed should emit PropertyChanged for Hostname property"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83930#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - hostnamed should emit PropertyChanged for Hostname property"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83930">bug 83930</a>
from <span class="vcard"><a class="email" href="mailto:dh.herrmann@gmail.com" title="David Herrmann <dh.herrmann@gmail.com>"> <span class="fn">David Herrmann</span></a>
</span></b>
<pre>hostnamed sets the kernel hostname itself, so there is little reason in
tracking it. We don't support other processes setting the kernel hostname
directly (and there is little reason for it), but only via hostnamed APIs.
Currently, hostnamed sends dbus notifications for *any* hostname change. That
is, if you're interested in a specific hostname, watch those notifications and
then either parse them are read the hostname via the gethostname(2) syscall.
Btw., I just noticed that we have the code to send notifications for "Hostname"
changes, but we lacked a vtable annotation. I fixed this [1], so you should now
get notifications for "Hostname" changes, too.
[1]
<a href="http://cgit.freedesktop.org/systemd/systemd/commit/?id=caffbef636ec48958dcb22e4b4140a9889a6a769">http://cgit.freedesktop.org/systemd/systemd/commit/?id=caffbef636ec48958dcb22e4b4140a9889a6a769</a></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>