Skip to content

Service to remotely run and monitor OS processes

Notifications You must be signed in to change notification settings

beamX/commander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commander

Service to run and monitor OS processes.

Quick example

  1. Define a elixir script module Commander.Daemons with get_spec function which returns processes which should be running,
defmodule Commander.Daemons do
  def get_spec() do
    %{
      sleep_500: %{
        command: "sleep",
        arg_list: ["500"],
        options: []
      }
    }
  end
end
  1. Configure the path of the elixir script containing the list of processes to run and monitor
Application.get_env(:commander, :daemons_config_file) # "/home/user/workspace/commander/daemon.exs"
  1. Lastly invoke Commander.sync_config() which will ensure that all processes returned by Commander.Daemons.get_spec() are running. NOTE: Any process which are currently running but no longer returned by get_spec() will be stopped.

About

Service to remotely run and monitor OS processes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published