<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Setting ShutdownWatchdogUSec via D-Bus does nothing"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=88284">88284</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Setting ShutdownWatchdogUSec via D-Bus does nothing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>maxtram95@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=112081" name="attach_112081" title="Make org.freedesktop.systemd1.Manager.ShutdownWatchdogUSec work">attachment 112081</a> <a href="attachment.cgi?id=112081&action=edit" title="Make org.freedesktop.systemd1.Manager.ShutdownWatchdogUSec work">[details]</a></span>
Make org.freedesktop.systemd1.Manager.ShutdownWatchdogUSec work

org.freedesktop.systemd1.Manager has a property ShutdownWatchdogUSec. I can
change it using the following command:

busctl --system set-property org.freedesktop.systemd1 /org/freedesktop/systemd1
org.freedesktop.systemd1.Manager ShutdownWatchdogUSec t 0

But it seems that this change has no effect, and systemd still uses old value
which is read from /etc/systemd/system.conf at startup.

I looked at sources:
<a href="http://cgit.freedesktop.org/systemd/systemd/tree/src/core/main.c?id=1325ec4280dd3f00f4879c5feadd524f7ba52f7e#n2014">http://cgit.freedesktop.org/systemd/systemd/tree/src/core/main.c?id=1325ec4280dd3f00f4879c5feadd524f7ba52f7e#n2014</a>

I see that systemd uses arg_shutdown_watchdog value (the one assigned from
config file) instead of m->shutdown_watchdog (the one that user could change by
D-Bus calls). Really, we can't use m->shutdown_watchdog at that point, because
m is freed on line 1827, but we could assign arg_shutdown_watchdog =
m->shutdown_watchdog right before manager_free(m).

I suggest attached patch to fix this issue.</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>