Skip to content

Clean up coder agent ps listing in workspace #2407

Closed
@mafredri

Description

@mafredri

Currently when viewing the process listing in a workspace, the user would see something like this:

coder@work:~$ ps aux | grep '[c]oder agent'
coder          1  0.4  0.0 745848 43092 ?        Ssl  14:24   0:00 /tmp/tmp.coderwWs87Y/coder agent

This doesn't look very neat and the tmp path is a bit weird, I'd rather this looked like this:

coder@work:~$ ps aux | grep '[c]oder agent'
coder          1  0.4  0.0 745848 43092 ?        Ssl  14:24   0:00 coder agent

We can achieve this by updating the agent startup scripts with a cd /tmp/tmp.coderwWs87Y; exec coder agent ....

While we're at it, we could change the tmp path from: /tmp/tmp.coderwWs87Y to /tmp/coder.wWs87Y which looks neater in my opinion.

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions