]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit-printf.c
core: deprecate %c, %r, %R specifiers
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 17:58:09 +0000 (18:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 17:58:09 +0000 (18:58 +0100)
commit1b89b0c499cd4bf0ff389caab4ecaae6e75f9d4e
treeb5a171fcae02729eaaee90897b595ef3fc32682c
parent6a9cd374e02bcec5adf1918ba07e881cf87e9236
core: deprecate %c, %r, %R specifiers

%c and %r rely on settings made in the unit files themselves and hence resolve
to different values depending on whether they are used before or after Slice=.
Let's simply deprecate them and drop them from the documentation, as that's not
really possible to fix. Moreover they are actually redundant, as the same
information may always be queried from /proc/self/cgroup and /proc/1/cgroup.

(Accurately speaking, %R is actually not broken like this as it is constant.
However, let's remove all cgroup-related specifiers at once, as it is also
redundant, and doesn't really make much sense alone.)
man/systemd.unit.xml
src/core/unit-printf.c