View Source Runlet.Process (runlet v1.2.5)

Process job control

Summary

Functions

Add a command to a user's process table.

Tests if a PID is running.

Retrieve a formatted process table for a user.

Restart saved processes.

Delete a command from a user's process table.

Toggle formatting of events.

Terminate a process for a user.

Sets the number of events allowed in a period of time (minutes). Events exceeding this limit are dropped.

Find a running command by PID.

Force a process to exit.

Run saved processes for a user.

Return the list of running commands.

Starts a stopped process.

Restarts running processes.

Suppresses output for a process for the given number of minutes.

List available process tables.

List process entries for a user.

Types

Functions

@spec add(binary(), pid() | Runlet.PID.t(), binary()) :: :ok | {:error, any()}

Add a command to a user's process table.

@spec alive?(pid()) :: boolean()

Tests if a PID is running.

@spec all(binary()) :: [binary()]

Retrieve a formatted process table for a user.

@spec boot((... -> any())) :: [any()]

Restart saved processes.

@spec delete(binary(), pid() | Runlet.PID.t()) :: :ok | {:error, any()}

Delete a command from a user's process table.

@spec format(binary(), Runlet.PID.t()) :: binary()

Toggle formatting of events.

@spec kill(binary(), Runlet.PID.t()) :: binary()

Terminate a process for a user.

Link to this function

limit(name, id, count \\ 1, minutes \\ 1)

View Source
@spec limit(binary(), Runlet.PID.t(), pos_integer(), pos_integer()) :: binary()

Sets the number of events allowed in a period of time (minutes). Events exceeding this limit are dropped.

@spec lookup(binary(), Runlet.PID.t()) :: [t()]

Find a running command by PID.

@spec match(binary(), Runlet.PID.t(), (pid(), binary() -> binary())) :: binary()
@spec pexit(binary(), Runlet.PID.t()) :: binary()

Force a process to exit.

@spec run(binary(), [t()], (... -> any())) :: [any()]

Run saved processes for a user.

@spec running(binary()) :: [binary()]

Return the list of running commands.

@spec start(binary(), Runlet.PID.t()) :: binary()

Starts a stopped process.

Restarts running processes.

Link to this function

stop(name, id, minutes \\ 60)

View Source
@spec stop(binary(), Runlet.PID.t(), non_neg_integer()) :: binary()

Suppresses output for a process for the given number of minutes.

@spec table() :: [binary()]

List available process tables.

@spec table(binary()) :: [t()]

List process entries for a user.