sleep infinity

This commit is contained in:
miwr 2025-04-02 14:21:28 +02:00
parent 4553289695
commit 8b6b29cb9f
2 changed files with 3 additions and 5 deletions

View file

@ -14,7 +14,7 @@ spec:
image: skymatic/logrotate:latest image: skymatic/logrotate:latest
securityContext: securityContext:
runAsUser: 100 runAsUser: 100
command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep 1000000"] command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep infinity"]
volumeMounts: volumeMounts:
- name: host-log-storage - name: host-log-storage
mountPath: /openbao/logs mountPath: /openbao/logs

View file

@ -8,9 +8,7 @@ data:
#!/bin/sh #!/bin/sh
echo "Starting sidecar listener on port 8080..." echo "Starting sidecar listener on port 8080..."
while true; do while true; do
# Listen for an HTTP request (basic netcat-based server) echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080
echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080 -q 1
# Send SIGHUP signal
kill -SIGHUP $(pidof bao) || echo "OpenBAO process not found" kill -SIGHUP $(pidof bao) || echo "OpenBAO process not found"
mkdir pupa mkdir /tmp/pupa
done done