-
Notifications
You must be signed in to change notification settings - Fork 5.9k
systemd unit won't persist #1673
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
Comments
If you run:
As mentioned in the guide, it should launch on startup.
If that doesn't work, lmk and I'll reopen this issue. |
Same behavior with that command. Stays open for as long as the Terminal window is open. |
Interesting, will try to reproduce. |
Just as a note, I've upgraded to 3.3.1 6f13097 with same behavior observed. |
Seems to work for me. I created a Debian 10 VM on GCP and then installed code-server with the instructions from the guide. Then followed the guide to setup a self signed certificate and listen on Confirmed I could access code-server once the instance was up. Did not login into the VM until I verified I could access code-server. |
Might be something different about your systemd setup. We're also using a systemd service but it's a systemd user service. It's at https://github.com/cdr/code-server/blob/aa872701481ad371f25a6cc7042ca1e55d05e782/ci/build/code-server.service and installed as part of the What does |
Prints |
Seems right to me. How about |
Do you see any logs in |
Negatory. |
I'm stumped. Can you try a fresh machine with Debian 10? |
Yeah, I can. This was basically straight off a clean Deb10 distro last night, so I'm not sure what good it will do, but I'll try and let you know. The only slight deviation off your guide is that I'm running it through an Apache reverse proxy as opposed to Caddy; not sure if that would make a difference. |
Shouldn't be a problem re Apache. Weird thing is also I just tested a fresh Deb10 machine on GCP so then I'm not sure what the difference is between our setups. If you copy the systemd user service and turn it into a system service, do things operate as expected? |
I think I might have fixed it. Tried a reboot with this and works normally now: |
Nice 🚀
All good, appreciate the discusssion, didn't know you could configure lingering. |
code-server --version
: 3.3.0 52eeccaNote: running behind Apache reverse-proxy
Last night, I re-built my development server and installed Code Server 3.3 using the guide provided (thanks!). Previously, I managed it via a systemd service which launched it on start-up and kept it running -- the guide now states to use 'systemctl --user restart code-server,' which works fine and launches it when the shell is open, but closes it when I close the shell. Is this behavior by design / is there any guidance for keeping it running?
The text was updated successfully, but these errors were encountered: