mgit-at / systemd-runas

Transfer PID to new systemd scope and slice for different ressource accounting, callable as user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

systemd-runas

Transfer PID to new systemd scope and slice for different ressource accounting, callable as user.

How it works

systemd-runas is called with the name of the slice the program want's the pid be transferred

sudo systemd-runas convert 1234

This call transferes PID 1234 into scope convert-1234.scope and applies ressource accounting from convert.slice to it.

Example sudoers entry

tomcat ALL = NOPASSWD: /usr/local/bin/systemd-runas convert [0-9]*

About

Transfer PID to new systemd scope and slice for different ressource accounting, callable as user

License:Apache License 2.0


Languages

Language:Go 50.2%Language:Makefile 49.8%