Skip to content

How to stop code-server #6065

Answered by code-asher
ctoabidmaqbool asked this question in Q&A
Discussion options

You must be logged in to vote

If you are running plain code-server then you could Ctrl+c the command. If you run it in the background manually like with code-server & then you could kill it by finding the PID via ps or netstat and run kill <pid> or match by name like with pkill code-server.

If you can, run code-server with systemd (systemctl start code-server). Then you can let systemd manage the lifecycle and you can run systemctl stop code-server.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ctoabidmaqbool
Comment options

Answer selected by ctoabidmaqbool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants