Skip to content

fix(agent): leave systemd WorkingDirectory unquoted - #333

Merged
gosunuts merged 3 commits into
mainfrom
fix/agent-systemd-workingdirectory
Aug 28, 2026
Merged

fix(agent): leave systemd WorkingDirectory unquoted#333
gosunuts merged 3 commits into
mainfrom
fix/agent-systemd-workingdirectory

Conversation

@gosunuts

Copy link
Copy Markdown
Member

Summary

portal agent run on Linux systemd 259 installed a user unit that never started: WorkingDirectory= was shell-quoted, so systemd treated the quotes as part of the path and rejected it as not absolute. An ordinary absolute config directory now renders unquoted. ExecStart= quoting is unchanged.

Test plan

  • go test ./cmd/portal-tunnel/agent/service/ (linux): generated unit contains WorkingDirectory=/home/user/.config/portal-tunnel/agent and still quotes ExecStart=

Closes #328

systemd 259 treats shell quotes as part of the path and rejects the
managed user unit as not absolute. ExecStart quoting is unchanged.
@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 5 minutes.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: efa25c01-853d-4228-bd28-3cfa0c2adc63

📥 Commits

Reviewing files that changed from the base of the PR and between acecc57 and 3937ea8.

📒 Files selected for processing (2)
  • cmd/portal-tunnel/agent/service/service_linux.go
  • cmd/portal-tunnel/agent/service/service_linux_test.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gosunuts
gosunuts merged commit 2ddf4f9 into main Aug 28, 2026
7 checks passed
@gosunuts
gosunuts deleted the fix/agent-systemd-workingdirectory branch August 28, 2026 02:18
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.

Managed Linux agent generates a WorkingDirectory that systemd rejects

1 participant