]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
core: add two new unit file settings: StandardInputData= + StandardInputText=
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Oct 2017 09:33:05 +0000 (11:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Nov 2017 10:13:44 +0000 (11:13 +0100)
commit08f3be7a38d245b5fed9902f10d3129f339477fd
treeb9b4c8aff09fe77791edae41ef08e2d2dad3933f
parent11f5d82507494b39fcce27e102e5a8b186451acf
core: add two new unit file settings: StandardInputData= + StandardInputText=

Both permit configuring data to pass through STDIN to an invoked
process. StandardInputText= accepts a line of text (possibly with
embedded C-style escapes as well as unit specifiers), which is appended
to the buffer to pass as stdin, followed by a single newline.
StandardInputData= is similar, but accepts arbitrary base64 encoded
data, and will not resolve specifiers or C-style escapes, nor append
newlines.

This may be used to pass input/configuration data to services, directly
in-line from unit files, either in a cooked or in a more raw format.
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/service.c
src/shared/bus-unit-util.c
src/systemctl/systemctl.c