summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-03 12:16:43 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-03 12:16:43 +0200
commit51a86fcd6e4f199009888b5a106bf472f1b7c742 (patch)
tree4bcebfd61b0004247658622b5f1f956eff3ae336
parent255c83029f56e8d90e7ce185b007c4ca65afec1e (diff)
Handle systemd's "inactive" state as transient
Inactive is returned sometimes but it means that the service is not started yet not that it failed to start. AGL-Issue: SPEC-520 Change-Id: I3b39b983b45a0f6ee449958100595c5c486cbfdd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afm-urun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afm-urun.c b/src/afm-urun.c
index 48f8436..d6185c8 100644
--- a/src/afm-urun.c
+++ b/src/afm-urun.c
@@ -93,7 +93,7 @@ static const char *wait_state_stable(int isuser, const char *dpath)
for (;;) {
state = systemd_unit_state_of_dpath(isuser, dpath);
if (state == NULL || state == SysD_State_Active
- || state == SysD_State_Failed || state == SysD_State_Inactive)
+ || state == SysD_State_Failed)
return state;
/* TODO: sleep */
}