[lldp] Clean up service start logic owing to port init start optimization (#17133)
As part of service start optimization done, we've removed timer units and used PORT_INIT_DONE as the checkpoint for starting delayed services. Thus this logic is redundant This fixes the following error log. Nov 3 14:16:54.281546 r-leopard-44 ERR systemctl[10553]: Failed to get unit file state for lldp.timer: No such file or d Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
This commit is contained in:
parent
2c7dce428c
commit
b90c2fc3d2
@ -1 +0,0 @@
|
||||
per_namespace/lldp.timer.j2
|
@ -105,17 +105,6 @@ function waitplatform() {
|
||||
debug "Started pmon service"
|
||||
fi
|
||||
fi
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
function stopplatform1() {
|
||||
|
Loading…
Reference in New Issue
Block a user