From 63e48d73bd16ede1cea41e12c815de89760fec6e Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 26 Oct 2012 00:03:34 -0400 Subject: [PATCH] easier maintenance of pypo containers on SaaS --- python_apps/pypo/airtime-playout | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python_apps/pypo/airtime-playout b/python_apps/pypo/airtime-playout index 56aa587cd..bcd2c23d4 100755 --- a/python_apps/pypo/airtime-playout +++ b/python_apps/pypo/airtime-playout @@ -26,6 +26,11 @@ export LC_ALL=`cat /etc/default/locale | grep "LANG=" | cut -d= -f2 | tr -d "\n\ export TERM=xterm +#Nothing to do with Pypo, but for container maintenance. Let's parse the IP address +#so we may more easily manage our instance containers +ifconfig eth0 | egrep -o 'inet addr:([0-9]{1,3}\.){3}[0-9]{1,3}' | cut -d':' -f2 > /etc/airtime_ip_addr + + exec python ${pypo_path}${pypo_script} > /var/log/airtime/pypo/py-interpreter.log 2>&1 # EOF