summaryrefslogtreecommitdiffstats
path: root/sx.sh
blob: 71e3a354af89fc7e2b0b62ee22430a16bb8d0007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
export TERM=xterm
pid=0

function display_container_header {
    echo "+====================================================="
    echo "| Container   : $HOSTNAME"
    echo "| OS          : $(</etc/redhat-release)"
    echo "| kubernetes  : $KUBERNETES_SERVICE_HOST"
    echo "| user        : $(whoami)"
    echo "+====================================================="
}

function start_service {
    echo "+====================================================="
    echo "| Container $HOSTNAME is now RUNNING"
    echo "+====================================================="
    while true
    do
      echo "live... (next try in 10sec)" & sleep 3600
    done
}

display_container_header
start_service