![]() Stop program = "/etc/init.d/elixir stop" as uid deploy and gid deployĮxample Elixir init.d script: #!/bin/bashĬd /home/deploy/apps/api & PORT=8888 MIX_ENV=prod elixir -erl "-detached" -S mix phx.server > /home/deploy/elixir_init_d_start. Start program = "/etc/init.d/elixir start" as uid deploy and gid deploy ![]() I’ve tried this command which I read may ensure that the script is registered to run on reboot: sudo update-rc.d start_sphinx defaultsĮxample Elixir monit script: example monit script:Ĭheck process api matching "mix phx.server" I am attempting to log result of the init.d script, but I see no output ![]() When I reboot the machine the application is not started When logged in as deploy user role I manually run sudo monit start sphinx but nothing happens. etc/init.d sphinx start – the process starts just fine When logged in as deploy user role, I manually run. I am attempting to log result of the init.d script, but I see no output.When I reboot the machine the application is not started.When logged in as deploy user role I manually run sudo monit start elxir but nothing happens.etc/init.d elixir start – the process starts just fine Install Monit on Ubuntu 20.04 Monit is extremely well-supported on Linux, and it shows because it is present in the official repositories of many Linux distributions. When logged in as deploy user role, I manually run.Trying to get Elixir/Phoenix mix phx.server to start on reboot and work with Monit.Trying to get Sphinx to start on reboot, and to work with Monit.I am trying to get Monit / init.d scripts running on a few different servers, and for a few different processes on Ubuntu servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |