From 4c0ef7ff6b135ceb55c47a2c3ab8d727e0c6570a Mon Sep 17 00:00:00 2001 From: yanjun deng Date: Fri, 31 Mar 2023 14:23:42 -0700 Subject: [PATCH 1/2] skip auto_restart.conf for syncd --- scripts/hostcfgd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/hostcfgd b/scripts/hostcfgd index ad0c832c..d576212f 100755 --- a/scripts/hostcfgd +++ b/scripts/hostcfgd @@ -371,6 +371,11 @@ class FeatureHandler(object): # On multi-ASIC device, creates systemd configuration file for each feature instance # residing in difference namespace. for feature_name in feature_names: + # As to syncd service, swss will monitor its stop and restart it, don't need systemd to auto-restart it. + if "syncd" in feature_name: + continue + + syslog.syslog(syslog.LOG_INFO, "Updating feature '{}' systemd config file related to auto-restart ..." .format(feature_name)) feature_systemd_config_dir_path = self.SYSTEMD_SERVICE_CONF_DIR.format(feature_name) From 4539ae16ab4eaca93ce158ce556a1a8d32a9f26e Mon Sep 17 00:00:00 2001 From: yanjun deng Date: Fri, 31 Mar 2023 14:27:10 -0700 Subject: [PATCH 2/2] skip auto_restart.conf for syncd --- scripts/hostcfgd | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/hostcfgd b/scripts/hostcfgd index d576212f..c1be7972 100755 --- a/scripts/hostcfgd +++ b/scripts/hostcfgd @@ -375,7 +375,6 @@ class FeatureHandler(object): if "syncd" in feature_name: continue - syslog.syslog(syslog.LOG_INFO, "Updating feature '{}' systemd config file related to auto-restart ..." .format(feature_name)) feature_systemd_config_dir_path = self.SYSTEMD_SERVICE_CONF_DIR.format(feature_name)