Skip to content

Commit

Permalink
Allow daemonset to handle termination signals
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kennelly <martin.kennelly@intel.com>
  • Loading branch information
martinkennelly committed Apr 8, 2021
1 parent c0bb442 commit 6b8a32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ done
cp -f "$SRIOV_BIN_FILE" "$CNI_BIN_DIR"

echo "Entering sleep... (success)"
trap : TERM INT

# Sleep forever.
# sleep infinity is not available in alpine; instead lets go sleep for ~68 years. Hopefully that's enough sleep
sleep 2147483647
sleep 2147483647 & wait

0 comments on commit 6b8a32a

Please sign in to comment.