machined: make sure to track machine unit states properly

System Internals / systemd - Lennart Poettering [poettering.net] - 28 April 2015 14:34 UTC

If a unit is stopped for a moment, we need to invalidate our knowledge of it, otherwise we might be confused by automatic restarts

This makes reboots for nspawn containers run as service work correctly.

https://bugs.freedesktop.org/show_bug.cgi?id=87428

9b420b3 machined: make sure to track machine unit states properly
src/machine/machine.c | 20 +++++++++++-----
src/machine/machine.h | 2 ++
src/machine/machined-dbus.c | 55 ++++++++++++++++++++++++++++++++++++-------
3 files changed, 62 insertions(+), 15 deletions(-)

Upstream: github.com


  • Share