From 315f04d8b823adda96041c17f6672b7790376ccb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 8 Nov 2013 22:25:20 +0100 Subject: the automatic service restart should not happen during sysupgrade Signed-off-by: John Crispin --- instance.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'instance.c') diff --git a/instance.c b/instance.c index 7895a04..05b0f99 100644 --- a/instance.c +++ b/instance.c @@ -149,6 +149,9 @@ instance_exit(struct uloop_process *p, int ret) runtime = tp.tv_sec - in->start.tv_sec; DEBUG(1, "Instance %s::%s exit with error code %d after %ld seconds\n", in->srv->name, in->name, ret, runtime); + if (upgrade_running) + return; + uloop_timeout_cancel(&in->timeout); if (in->halt) { /* no action */ -- cgit v1.2.3