Skip to content

Instantly share code, notes, and snippets.

@ymauray
Created March 8, 2019 10:34
Show Gist options
  • Save ymauray/b01ea810226aa946b9fed2a009739b74 to your computer and use it in GitHub Desktop.
Save ymauray/b01ea810226aa946b9fed2a009739b74 to your computer and use it in GitHub Desktop.
systemd startup script for Visual Studio Code on the server
[Unit]
Description=Visual Studio Code on the server
After=network.target
[Service]
ExecStart=/usr/bin/code-server --allow-http /home/someuser/workspace/ --password=somefixedpassword
User=someuser
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
@GAZ082
Copy link

GAZ082 commented Jun 26, 2019

Handy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment