[lxc-devel] [lxc/lxc] 65ee16: start: send state to legacy lxc-monitord state ser...

GitHub noreply at github.com
Sat Jul 1 11:08:36 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 65ee1673f6592bc00ae41c8f5300aab8a7c67f07
      https://github.com/lxc/lxc/commit/65ee1673f6592bc00ae41c8f5300aab8a7c67f07
  Author: 0x0916 <w at laoqinren.net>
  Date:   2017-07-01 (Sat, 01 Jul 2017)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  start: send state to legacy lxc-monitord state server even if no state clients registered

This pr https://github.com/lxc/lxc/pull/1618 kill lxc-monitord, for backwards compatibility,
we also send state to legacy lxc-monitord state server in function `lxc_set_state`.

we should also send state if there is no state clients registered, otherwise `lxc-monitor` client will
not get state change event if container changed state to `STARTING` or `RUNNING`.

Signed-off-by: 0x0916 <w at laoqinren.net>


  Commit: fe9a13f700b450577840fa67e3f8fc42d6d2b4cc
      https://github.com/lxc/lxc/commit/fe9a13f700b450577840fa67e3f8fc42d6d2b4cc
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2017-07-01 (Sat, 01 Jul 2017)

  Changed paths:
    M src/lxc/start.c

  Log Message:
  -----------
  Merge pull request #1661 from 0x0916/2017-07-01/fix-set-state-error

start: send state to legacy lxc-monitord state server even if no state clients registered


Compare: https://github.com/lxc/lxc/compare/066e9fe8b5e7...fe9a13f700b4


More information about the lxc-devel mailing list