September 15, 2016

What is the best way to set up a systemd service with multiple background processes?

In my application i am using a dynamically amount of for example c++ processes. Via a script i managed that all of them a running correctly and the systemv implementation was very handy because i wrote one start/stop/restart/status script which controlled all my required processes easily via return codes.

Now with systemd, it seems to be neccessary to have an own service for each of my required processes? - Am i right with this?
Or is there a simple way how to manage multiple processes via one systemd service.
Start and stop is not the issue, but the status would be because i do not see a possibility to check the status of multiple processes directly from systemd and i dont want to write a wrapper service.

Any suggestions ?

Click Here!