We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca59756 commit cf81f3aCopy full SHA for cf81f3a
fs/etc/services.d/ingress-controller/run
@@ -1,5 +1,13 @@
1
#!/usr/bin/with-contenv sh
2
3
+if [ ! -f /var/run/s6/services/.s6-svscan/SIGUSR1 ]; then
4
+ cat > /var/run/s6/services/.s6-svscan/SIGUSR1 <<EOF
5
+#!/bin/sh
6
+kill -SIGTERM 1
7
+EOF
8
+ chmod +x /var/run/s6/services/.s6-svscan/SIGUSR1
9
+fi
10
+
11
MEMLIMIT=$(free -m | awk '/Mem:/ {print int($2 / 3)}')
12
13
CG_LIMIT_FILE="/sys/fs/cgroup/memory/memory.limit_in_bytes"
0 commit comments