]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add truncate: to StandardOutput= etc.
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Thu, 14 Jan 2021 21:32:55 +0000 (22:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Jan 2021 08:54:50 +0000 (09:54 +0100)
commit8d7dab1fda99a294a5538747bdb1a5960a3c2f43
treee3e1e5c590afa651474ff2b9458cf9d6692fb5a0
parente2ebc406ac78cb57612ce5c5d590018572d71df1
Add truncate: to StandardOutput= etc.

This adds the ability to specify truncate:PATH for StandardOutput= and
StandardError=, similar to the existing append:PATH. The code is mostly
copied from the related append: code. Fixes #8983.
man/systemd.exec.xml
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment.c
src/shared/bus-unit-util.c
src/test/test-execute.c
test/test-execute/exec-standardoutput-truncate.service [new file with mode: 0644]
test/units/testsuite-27.sh