View Source Runlet.Process (runlet v1.2.2)
Process job control
Link to this section 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.
Link to this section Types
Link to this section Functions
@spec add(binary(), pid() | Runlet.PID.t(), binary()) :: :ok | {:error, any()}
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.
@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.
@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 pexit(binary(), Runlet.PID.t()) :: binary()
Force a process to exit.
Run saved processes for a user.
Return the list of running commands.
@spec start(binary(), Runlet.PID.t()) :: binary()
Starts a stopped process.
Restarts running processes.
@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.
List process entries for a user.