]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: reject JSON output for trigger units
authordongshengyuan <545258830@qq.com>
Mon, 13 Jul 2026 06:16:55 +0000 (14:16 +0800)
committerdongshengyuan <545258830@qq.com>
Tue, 14 Jul 2026 04:03:22 +0000 (12:03 +0800)
commit3fa641d01fc559a4d1c73dcc72bdc7ebe9d08200
tree1bdef592ed37bbbcb08f9ae75a8aa40143976ea5
parentecf38b0e22ebe0c37a7fffcf3e77c6d9d7b48b9e
run: reject JSON output for trigger units

Reproducer:
  unit=run-json-trigger-$(date +%s)
  sudo systemd-run --json=short --unit="$unit" \
      --on-active=30s \
      /bin/true

Before, trigger mode accepted --json=short but printed only human-readable
"Running timer as unit" and "Will run service" lines. Reject the option
until trigger mode has structured output.

Follow-up for fe5a6c47af675bc0020c545d86fb103492e1d77c
src/run/run.c
test/units/TEST-74-AUX-UTILS.run.sh