Skip to content

Commit f7cbdd9

Browse files
[orchagent.sh] mask SIGHUP before starting orchagent (#22208)
[202411][orchagent.sh] mask SIGHUP before starting orchagent
1 parent 4765324 commit f7cbdd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dockers/docker-orchagent/orchagent.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,7 @@ if [[ x"${MGMT_VRF_ENABLED}" == x"true" ]]; then
110110
ORCHAGENT_ARGS+=" -v mgmt"
111111
fi
112112

113+
# Mask SIGHUP signal to avoid orchagent termination by logrotate before orchagent registers its handler.
114+
trap '' SIGHUP
115+
113116
exec /usr/bin/orchagent ${ORCHAGENT_ARGS}

0 commit comments

Comments
 (0)