test/testdata/test-execute/exec-standardinput-file-cat.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for StandardInput=file: |
| 4 | |
| 5 | [Service] |
| 6 | ExecStart=cat |
| 7 | Type=oneshot |
| 8 | StandardInput=file:/etc/os-release |
| 9 | # We leave StandardOutput= unset here, to verify https://github.com/systemd/systemd/issues/14560 works |
| 10 | # The "cat" tool is going to write to stdout, which fails if we dup() stdin to stdout |