summaryrefslogtreecommitdiffstats
path: root/instance.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-11-08 22:25:20 +0100
committerJohn Crispin <blogic@openwrt.org>2013-11-08 22:40:03 +0100
commit315f04d8b823adda96041c17f6672b7790376ccb (patch)
tree0016c7a4304595a3f453dbe12f3a0ef1e433db42 /instance.c
parent8fd40e8352bac9992ca4ebd50998d4e961f5404b (diff)
downloadunitd-315f04d8b823adda96041c17f6672b7790376ccb.tar
unitd-315f04d8b823adda96041c17f6672b7790376ccb.zip
the automatic service restart should not happen during sysupgrade
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'instance.c')
-rw-r--r--instance.c3
1 files changed, 3 insertions, 0 deletions
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 */