Você não precisa ser root para iniciar um grupo com escopo no usuário com systemd-run
:
$ systemd-run --user --scope /bin/bash
Running scope as unit run-23318.scope.
$ sleep 999 &
[1] 23369
Você pode ver a unidade:
$ systemctl --user status run-23318.scope
* run-23318.scope - /bin/bash
Loaded: loaded (/run/user/1000/systemd/user/run-23318.scope; static;
vendor preset: enabled)
Drop-In: /run/user/1000/systemd/user/run-23318.scope.d
'-50-Description.conf
Active: active (running) since Sun 2016-07-17 08:16:51 CEST; 10min ago
CGroup: /user.slice/user-1000.slice/[email protected]/run-23318.scope
|-23318 /bin/bash
'-23369 sleep 999
Jul 17 08:16:51 home systemd[1056]: Started /bin/bash.
Jul 17 08:16:51 home systemd[1056]: Starting /bin/bash.
e também com
$ systemd-cgls /user.slice/user-1000.slice/[email protected]/run-23318.scope
/user.slice/user-1000.slice/[email protected]/run-23318.scope:
|-23318 /bin/bash
'-23369 sleep 999