From 21b9ba8a842f17862ad40ae5249dddbf56f9f8c8 Mon Sep 17 00:00:00 2001 From: Yuan Liu Date: Sat, 30 Jun 2018 09:24:53 +0800 Subject: [PATCH] misc: disable cbc_lifecycle service always restart by systemd Due to cbc_lifecycle service already has its own retry mechanism,so change the Restart type to "no". This change is also indirectly avoid cbc_lifecycle always restart for the non-IOC boards. Actually, there has one defect for current IOC CBC architecture due to lack IOC hardware detection mechanism. The related guys are already aware it and WIP. Signed-off-by: Yuan Liu Reviewed-by: Alex Du Reviewed-by: Yu Wang --- misc/cbc_lifecycle/cbc_lifecycle.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cbc_lifecycle/cbc_lifecycle.service b/misc/cbc_lifecycle/cbc_lifecycle.service index 2db56a487..149092592 100644 --- a/misc/cbc_lifecycle/cbc_lifecycle.service +++ b/misc/cbc_lifecycle/cbc_lifecycle.service @@ -4,7 +4,7 @@ Description=CBC lifecycle service [Service] Type=simple ExecStart=/usr/bin/cbc_lifecycle -Restart=always +Restart=no ExecStop=/usr/bin/killall -s TERM cbc_lifecycle [Install]