Skip to content

Use systemd to start the agent in the gcp-linux template #2178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
spikecurtis opened this issue Jun 8, 2022 · 1 comment
Closed
1 of 2 tasks

Use systemd to start the agent in the gcp-linux template #2178

spikecurtis opened this issue Jun 8, 2022 · 1 comment
Labels
api Area: HTTP API site Area: frontend dashboard

Comments

@spikecurtis
Copy link
Contributor

spikecurtis commented Jun 8, 2022

The example gcp-linux template executes the coder agent in a startup script as root.

This results, among other things, in the developer being root in their workspace when they SSH in, which is not a great experience.

We should:

  • Run as a normal user
  • Start the agent via systemd to set up standard environment, use journal for logging, etc
@misskniss misskniss added api Area: HTTP API site Area: frontend dashboard labels Jun 14, 2022
@kylecarbs kylecarbs changed the title Run as normal user in gcp-linux template Use systemd to start the agent in the gcp-linux template Aug 24, 2022
@bpmct
Copy link
Member

bpmct commented Oct 21, 2022

Gonna close this to reduce open issues.

@bpmct bpmct closed this as completed Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

3 participants