]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn,journal-remote: add journal forwarding disk usage options
authorDaan De Meyer <daan@amutable.com>
Fri, 27 Mar 2026 14:38:09 +0000 (14:38 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Apr 2026 18:05:38 +0000 (20:05 +0200)
commit012d87c1fc3f22d7bc23a4389e710082c6666fc5
tree66e4347341e583a905bf878dae5fa66a00ffc5bc
parentfcff95831909f0ff9eb8be6ac61c411bc09fa566
vmspawn,journal-remote: add journal forwarding disk usage options

Add options to vmspawn to configure journal-remote disk usage limits
when forwarding journal entries from the VM. These are passed through
as --max-use=, --keep-free=, --max-file-size=, and --max-files=
command-line arguments to systemd-journal-remote.

Add --max-use=, --keep-free=, --max-file-size=, and --max-files=
command-line options to systemd-journal-remote to allow overriding the
corresponding settings from the configuration file.

Add $SYSTEMD_JOURNAL_REMOTE_CONFIG_FILE environment variable support
to systemd-journal-remote. When set, the specified file is used
instead of the default configuration file and drop-in directories.
When set to the empty string or /dev/null, configuration file parsing
is skipped entirely. vmspawn sets this to /dev/null in the child
process to avoid inheriting the host's journal-remote configuration.

Make fork_notify() argv parameter optional. When NULL is passed,
fork_notify() returns 0 in the child (with $NOTIFY_SOCKET set) and
lets the caller run custom code before exec. Returns 1 in the parent.
This allows vmspawn to set environment variables in the child without
polluting the parent process.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
docs/ENVIRONMENT.md
man/systemd-journal-remote.service.xml
man/systemd-vmspawn.xml
shell-completion/bash/systemd-vmspawn
src/journal-remote/journal-remote-main.c
src/shared/fork-notify.c
src/vmspawn/vmspawn.c