Skip to content

Add command "loginctl enable-linger $USER" in install.sh #1861

Closed
@yu-chenxi

Description

@yu-chenxi

I install code-server on my ECS by executing install.sh.
Then execute following:

systemctl --user enable --now code-server
systemctl --user start code-server

But when I disconnect the ssh connection from my ECS, the code-server process will be killed immediately and the connection
between ECS and browser will break. Finally, I find this article systemd user instance to solve the problem.

This is solution.

loginctl enable-linger $USER

The issue is only happends when I run code-server as non-root user.
I think you shound add it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions