diff --git a/dockers/docker-orchagent/orchagent.sh b/dockers/docker-orchagent/orchagent.sh index b0d19823f02..caa3d479048 100755 --- a/dockers/docker-orchagent/orchagent.sh +++ b/dockers/docker-orchagent/orchagent.sh @@ -117,4 +117,7 @@ if [[ x"${ORCHDAEMON_RING_ENABLED}" == x"true" ]]; then ORCHAGENT_ARGS+=" -R" fi +# Mask SIGHUP signal to avoid orchagent termination by logrotate before orchagent registers its handler. +trap '' SIGHUP + exec /usr/bin/orchagent ${ORCHAGENT_ARGS}