summaryrefslogtreecommitdiffstats
path: root/sx.sh
diff options
context:
space:
mode:
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