I am currently using systemd for managing web applications (mainly written in GoLang and Ruby) as services on Linux (Ubuntu 16.04 and CentOS 7) and I am trying to port my web server configuration over to FreeBSD. My code runs fine on FreeBSD but I am not sure of how to manage the web application processes. Mainly I want the following:
- Web applications to start/stop with the OS;
- Web applications to be manageable as services (like I want to be able to do
service mywebapplication restart);
- And have the web applications automatically restart on crashes.