summaryrefslogtreecommitdiffstats
path: root/sx.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-28 02:54:00 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-28 02:54:00 +0100
commita4f8f68f2604096de935f3a20ea230b95e0eb130 (patch)
tree58796e0c6aa1b0281fa711491cfdc09a59588741 /sx.sh
downloadands-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.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/sx.sh b/sx.sh
new file mode 100644
index 0000000..6dfe719
--- /dev/null
+++ b/sx.sh
@@ -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