]> git.ipfire.org Git - thirdparty/systemd.git/commit
scope: Support RuntimeMaxSec= directive in scope units
authorPhilip Withnall <withnall@endlessm.com>
Wed, 12 Jun 2019 07:45:26 +0000 (08:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Oct 2019 08:44:31 +0000 (09:44 +0100)
commit9ed7de605d7c1a3290e544e92ea5de6141c26bbc
tree2f9331649c36deec0a112f6001b46ce43b3275e4
parent7508f7f273cb2957dbdf7cd8d5d7fe040c80d8e4
scope: Support RuntimeMaxSec= directive in scope units

Just as `RuntimeMaxSec=` is supported for service units, add support for
it to scope units. This will gracefully kill a scope after the timeout
expires from the moment the scope enters the running state.

This could be used for time-limited login sessions, for example.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #12035
docs/TRANSIENT-SETTINGS.md
man/systemd.scope.xml
src/core/dbus-scope.c
src/core/load-fragment-gperf.gperf.m4
src/core/scope.c
src/core/scope.h
src/shared/bus-unit-util.c
test/TEST-03-JOBS/test-jobs.sh
test/fuzz/fuzz-unit-file/directives.scope [new file with mode: 0644]