Improve use of systemd's states 61/24561/1
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 19 May 2020 09:22:26 +0000 (11:22 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 19 May 2020 12:11:44 +0000 (14:11 +0200)
commitf8f2338aba84394e132fff55b6ebdef7d884292b
treedda988169851b84525431e904f473fc515868abb
parente7ac328451fa3b3edfbd3658a2365b75d41c0698
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