Skip to content

fix(systemd): replace %S with %E in unit files - #277

Merged
DavidePrincipi merged 1 commit into
mainfrom
fix-8029
Jul 28, 2026
Merged

fix(systemd): replace %S with %E in unit files#277
DavidePrincipi merged 1 commit into
mainfrom
fix-8029

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

Summary

  • Newer systemd releases (Rocky Linux 9.8+, Debian 13) changed the %S specifier to expand to ~/.local/state instead of ~/.config, breaking units that relied on the old behavior to reference the config/state directory.
  • Replaced %S with %E across all affected systemd user unit files. %E expands to ~/.config on both old and new systemd, making the units forward-compatible.

Related: NethServer/dev#8029

Test plan

  • Verify units still parse (systemd-analyze verify) on a test node
  • Confirm services start correctly on both an old (Rocky 9.x pre-9.8) and new (Rocky 9.8+/Debian 13) systemd host

Newer systemd releases (Rocky Linux 9.8+, Debian 13) changed the %S
specifier to expand to ~/.local/state instead of ~/.config, breaking
units that relied on the old behavior to reference the config
directory. %E expands to ~/.config on both old and new systemd, so it
is the correct, forward-compatible specifier for this use case.

Assisted-by: Claude:claude-sonnet-5
@DavidePrincipi DavidePrincipi self-assigned this Jul 23, 2026
@DavidePrincipi
DavidePrincipi merged commit 7ad2f31 into main Jul 28, 2026
5 checks passed
@DavidePrincipi
DavidePrincipi deleted the fix-8029 branch July 28, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant