Skip to content

Commit a49b60c

Browse files
authored
Merge pull request #2164 from nebius/NOTIC/fix-hanging-munge
fix long termination of worker pods
2 parents d07f06e + 466100a commit a49b60c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

images/login/sshd_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ echo "Waiting until munge started"
3333
while [ ! -S "/run/munge/munge.socket.2" ]; do sleep 2; done
3434

3535
echo "Start sshd daemon"
36-
/usr/sbin/sshd -D -e -f /mnt/ssh-configs/sshd_config
36+
exec /usr/sbin/sshd -D -e -f /mnt/ssh-configs/sshd_config

images/munge/munge_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ echo "Set permissions for shared /run/munge"
99
chmod 755 /run/munge # It changes permissions of this shared directory in other containers as well
1010

1111
echo "Start munge daemon"
12-
munged -F --num-threads="$MUNGE_NUM_THREADS" --key-file="$MUNGE_KEY_FILE" --pid-file="$MUNGE_PID_FILE" -S "$MUNGE_SOCKET_FILE"
12+
exec munged -F --num-threads="$MUNGE_NUM_THREADS" --key-file="$MUNGE_KEY_FILE" --pid-file="$MUNGE_PID_FILE" -S "$MUNGE_SOCKET_FILE"

images/worker/supervisord_entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ fi
9797

9898
# Hack with logs: multilog will write log in stdout and in log file, and rotate log file
9999
echo "Start supervisord daemon"
100-
/usr/bin/supervisord
100+
exec /usr/bin/supervisord

0 commit comments

Comments
 (0)