[systemd-devel] [PATCH] service: actually delay auto-restart if another job is pending

2012-04-30 Thread David Ward
--- src/core/service.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/core/service.c b/src/core/service.c index 4358a94..e9fbd6d 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -2220,6 +2220,8 @@ static void service_enter_restart(Service *s) {

[systemd-devel] [PATCH] service: fix auto-restart handling in service_start()

2012-04-30 Thread David Ward
Do not bypass the SERVICE_DEAD/SERVICE_FAILED state by manually issuing a start job while an automatic restart is pending. --- src/core/service.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/core/service.c b/src/core/service.c index 5aa1c0f..3400b55 10064

[systemd-devel] [PATCH] service: fix auto-restart handling in service_stop()

2012-04-30 Thread David Ward
When service_stop() handles a service in the SERVICE_AUTO_RESTART state, it calls service_set_state() to transition it to the SERVICE_DEAD state. However if the service failed, it should transition it to SERVICE_FAILED instead, which will trigger its OnFailure units. To achieve this, we now call se