Host process for multiple processes?

view story

http://unix.stackexchange.com – I am maintaining an application that currently consists of 4 processes that are dependant on each other in various ways. At the moment these processes are started, stopped and monitored via a rather "grown" bash script, which contains pearls like these: # And another rather dirty way to identify the node Api # process by knowing the filename that is given to node.js. # Keep in mind not to kill the retrieved process directly, but # check the running user and the used port to make sure you # actually got the correct process. findApiProcessId() { local pid=`ps ax | grep node | grep api/serve (HowTos)