mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 18:27:04 +03:00
5bc7452b32
When Group is set in the unit, the runtime directories are owned by this group and not the default group of the user (same for cgroup paths and standard outputs) Fix #1231
10 lines
329 B
Desktop File
10 lines
329 B
Desktop File
[Unit]
|
|
Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set)
|
|
|
|
[Service]
|
|
ExecStart=/bin/sh -c 'f=/tmp/test-exec_runtimedirectory-owner;g=$(stat -c %G $f); echo "$g"; exit $(test $g = "nobody")'
|
|
Type=oneshot
|
|
Group=nobody
|
|
User=root
|
|
RuntimeDirectory=test-exec_runtimedirectory-owner
|