How do i create a transient systemd scope?



  • Man page for systemd.scope.

    Also see: What are the default cgroup hierarchies?

    Note: It is not common to use systemd-run like this. It is a way of setting limits on resources consumed by the service during its runtime. Applications would do this via API calls.

    This needs to be done with root privileges, otherwise you will the following message:

    Failed to start transient scope unit: Interactive authentication required.

    Transient units are removed automatically as soon as the service is stopped. The output of who will be returned.

    $ systemd-run --unit=training --scope --slice=training who
    

Log in to reply
 

© Lightnetics 2019