diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index 065574e501bf..10535a8ff448 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -63,9 +63,13 @@ function waitplatform() { if [[ x"$BOOT_TYPE" = @(x"fast"|x"warm"|x"fastfast") ]]; then debug "LLDP service is delayed by a timer for better fast/warm boot performance" else - debug "Starting lldp service..." - /bin/systemctl start lldp - debug "Started lldp service" + lldp_state=$(systemctl is-enabled lldp.timer) + if [[ $lldp_state == "enabled" ]] + then + debug "Starting lldp service..." + /bin/systemctl start lldp + debug "Started lldp service" + fi fi }