I\'ve been struggling with this a week now and really can\'t seem to find an answer. I\'ve deployed my Rails App with Capistrano. I use Puma as a server.
When I deploy,
Have you looked into Foreman ?
Foreman makes it easy to start and stop your application if it has multiple processes.
Incidentally it also provides an export function that can generate some systemd
or upstart
scripts for you to (re)start and stop your application.
As you are already using capistrano you can use capistrano-foreman to integrate all this nicely with capistrano.
I hope you find some use in these resources