diff options
Diffstat (limited to 'sx.sh')
-rw-r--r-- | sx.sh | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,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
\ No newline at end of file |