Size: 507
Comment:
|
Size: 793
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 23: | Line 23: |
== Check port running == {{{#!highlight bash #!/bin/sh RES=`netstat -at -n | grep 0.0.0.0:12345 | wc -l` if [ $RES -eq '1' ] then #echo 'Running' else logger 'Process not listening on port 12345' /sbin/service processx restart logger 'Process restarted' fi }}} |
bash
Bourne again shell.
Server loop
Add extra IP address to NIC
Adapted from http://unclean.org/howto/secondip.html
Add extra IP 192.168.1.5 to NIC eth0