blob: 6dfe7198997f8dd7e483ba204eb7c7bf902e1ca2 (
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 10
done
}
display_container_header
start_service
|