= bash = Bourne again shell. == Server loop == {{{#!highlight bash #!/bin/sh # restart the server in case of failure logger "Starting server.py" until /usr/bin/python server.py 1234; do logger "Server crashed with exit code $?. Respawning.." sleep 1 done }}} == Add extra IP address to NIC == Adapted from http://unclean.org/howto/secondip.html Add extra IP 192.168.1.5 to NIC eth0 {{{#!highlight bash ifconfig eth0:0 192.168.1.5 route add -host 192.168.1.5 dev eth0:0 }}}