muontrap v0.1.0 MuonTrap View Source

Documentation for MuonTrap.

Link to this section Summary

Functions

Executes a command like System.cmd/3 but using muontrap

Return the absolute path to the muontrap executable

Link to this section Functions

Link to this function cmd(command, args, opts \\ []) View Source
cmd(binary(), [binary()], keyword()) ::
  {Collectable.t(), exit_status :: non_neg_integer()}

Executes a command like System.cmd/3 but using muontrap.

Examples

iex> MuonTrap.cmd("echo", ["hello"])
{"hello\n", 0}

Options

  • :cgroup_controllers - run the command under the specified cgroup controllers. Defaults to [].
  • :cgroup_path - use the specified path for the cgroup
  • :cgroup_sets - set a cgroup controller parameter before running the command
  • :delay_to_sigkill - milliseconds before sending a SIGKILL to a child process if it doesn’t exit with a SIGTERM
  • :uid - run the command using the specified uid or username
  • :gid - run the command using the specified gid or group

    See System.cmd for additional options.

Return the absolute path to the muontrap executable.