easier maintenance of pypo containers on SaaS

This commit is contained in:
Martin Konecny 2012-10-26 00:03:34 -04:00
parent c1b2978fba
commit 63e48d73bd
1 changed files with 5 additions and 0 deletions

View File

@ -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