ExecutionPlane. Process. Containment. SystemdUser
(ExecutionPlaneProcess v0.3.0)
Copy Markdown
View Source
Strict Linux process containment through transient systemd user services.
The service is created with KillMode=control-group. stop/2 does not
report success until systemd says the unit is gone/inactive and the cgroup
is unpopulated. This reaches descendants that escape ordinary process-group
cancellation with setsid(2) or reparenting.
Environment values are not placed in argv. :inherit_env accepts variable
names and uses systemd-run's name-only --setenv=NAME form to copy each
value from the caller.
Summary
Types
Functions
@spec status( ExecutionPlane.Process.Containment.t() | String.t(), keyword() ) :: {:ok, status()} | {:error, term()}
@spec stop( ExecutionPlane.Process.Containment.t() | String.t(), keyword() ) :: :ok | {:error, term()}