I'd like to have a UNIX domain socket, say /var/program/program.cmd for example, exposed via TCP, lets say on port 12345. I'd also like this to be running full time in the background.
What's the best way to do this? If its relevant the system is running Ubuntu 12.04.2.
Also with the proposed solution will it survive the domain socket being removed and recreated?
Here is the outcome of the accepted answer in the form of an init script: https://github.com/Wirehive/haproxy-remote