Restart app after server reboot

I’m deploying an elixir OTP release on a Redhat 6.6 server. What is the best practice to have the elixir app restart when the server reboots?

Thank,
Robert

1 Like

Running Elixir on a dedicated/virtual Linux server, you probably want to set up your Release as a systemd service unit.

Take a look at the relevant guide in the Distillery documentation:

https://hexdocs.pm/distillery/use-with-systemd.html

2 Likes

I do this on RedHat 7:

1 Like