Skip to content

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

Merged
DavidePrincipi merged 1 commit into
mainfrom
fix-8029
Sep 21, 2026
Merged

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 requested review from Tbaile and removed request for gsanchietti September 18, 2026 14:40

@Tbaile Tbaile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@DavidePrincipi
DavidePrincipi merged commit fd998b1 into main Sep 21, 2026
5 checks passed
@DavidePrincipi
DavidePrincipi deleted the fix-8029 branch September 21, 2026 13:29
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.

2 participants