diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-02-28 02:54:00 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-02-28 02:54:00 +0100 |
commit | a4f8f68f2604096de935f3a20ea230b95e0eb130 (patch) | |
tree | 58796e0c6aa1b0281fa711491cfdc09a59588741 /sx.sh | |
download | ands-management-a4f8f68f2604096de935f3a20ea230b95e0eb130.tar.gz ands-management-a4f8f68f2604096de935f3a20ea230b95e0eb130.tar.bz2 ands-management-a4f8f68f2604096de935f3a20ea230b95e0eb130.tar.xz ands-management-a4f8f68f2604096de935f3a20ea230b95e0eb130.zip |
Initial import
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 |