From 51a86fcd6e4f199009888b5a106bf472f1b7c742 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 3 Apr 2017 12:16:43 +0200 Subject: [PATCH] Handle systemd's "inactive" state as transient MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/afm-urun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.16.6