Skip to content

[codex] use systemd runtime directory for CasaOS#2525

Open
ianalloway wants to merge 1 commit into
IceWhaleTech:mainfrom
ianalloway:codex/systemd-runtime-directory
Open

[codex] use systemd runtime directory for CasaOS#2525
ianalloway wants to merge 1 commit into
IceWhaleTech:mainfrom
ianalloway:codex/systemd-runtime-directory

Conversation

@ianalloway

Copy link
Copy Markdown

Summary

  • switch the CasaOS systemd PID file from /var/run/casaos to /run/casaos
  • add RuntimeDirectory=casaos so systemd creates the runtime directory for the service
  • update cleanup scripts to remove the runtime URL file through /run/casaos

Why

Recent install logs show systemd warning that /var/run/... is a legacy path and is rewritten to /run/.... Using /run directly removes that warning, and RuntimeDirectory makes the runtime directory ownership explicit for the service.

Validation

  • bash -n build/sysroot/usr/share/casaos/cleanup/service.d/casaos/arch/cleanup-casaos.sh
  • bash -n build/sysroot/usr/share/casaos/cleanup/service.d/casaos/debian/cleanup-casaos.sh

Copilot AI review requested due to automatic review settings June 27, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

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