Skip to content

Instantly share code, notes, and snippets.

@sr229
Last active March 30, 2019 04:52
Show Gist options
  • Save sr229/9600b26d9eada8133a8587ce05d846a9 to your computer and use it in GitHub Desktop.
Save sr229/9600b26d9eada8133a8587ce05d846a9 to your computer and use it in GitHub Desktop.
code-server systemd Unit
[Unit]
Description=VSCode in a browser
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/code-server --allow-http --no-auth $PWD
WorkingDirectory=$HOME/projects
ExecStop=/sbin/start-stop-daemon --stop -x /usr/bin/code-server
Restart=on-failure
User=1000
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment