Last active
March 30, 2019 04:52
-
-
Save sr229/9600b26d9eada8133a8587ce05d846a9 to your computer and use it in GitHub Desktop.
code-server systemd Unit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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