Improve use of systemd's states 62/24562/1
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 19 May 2020 09:22:26 +0000 (11:22 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 20 May 2020 14:46:31 +0000 (16:46 +0200)
commit61fddd3f281061a93a13e4e14e75b80925816684
tree39e6a45ce41c0f228aae61f8aa04612a88b76b12
parent4818e6c17dd8b9de2c998611297796a94d1e5f78
Improve use of systemd's states

A better handling of systemd state is need to treat
correctly transient states. That change includes:

- Management of states with numeric identifiers
  instead of names

- Handling of the state "inactive" as a stable
  state. Most of previous seen problems were coming
  from that miss.

- Returning no error but also no info on the process
  if it falled to "inactive" meaning that it stopped
  quickly.

Bug-AGL: SPEC-3323

Change-Id: Ibf35eb6257c5583596d675cad0bec2869f5fd5f7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afm-binding.c
src/afm-urun.c
src/utils-systemd.c
src/utils-systemd.h