You can use the --daemon
option to make puma fork to the background. That way, it will free your terminal as soon as it ends the startup process.
To make the process exit afterwards, you need to send it the TERM
signal:
kill -TERM $PID
Where $PID
stands for puma's process id. The easiest way to get that on a server is to ask puma to save its pid on a file (a, suitably named, "pidfile"), using the --pidfile
option when starting it up.
For more options, check out puma's documentation and examples on github: https://github.com/puma/puma