blob: 5bf4d1735acfaf674edb7cc11d0b73f043dee324 (
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 : $(</etc/whoami)"
echo "+====================================================="
}
function start_service {
echo "+====================================================="
echo "| Container $HOSTNAME is now RUNNING"
echo "+====================================================="
while true
do
echo "live... (next try in 10sec)" & sleep 10
done
}
display_container_header
start_service
|