Skip to content

Instantly share code, notes, and snippets.

@igk1972
Last active January 27, 2020 16:00
Show Gist options
  • Save igk1972/cee3fe6ebae1da9b1f21fc63a5a3cbb8 to your computer and use it in GitHub Desktop.
Save igk1972/cee3fe6ebae1da9b1f21fc63a5a3cbb8 to your computer and use it in GitHub Desktop.
[Unit]
Description=Code Server IDE
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
User=igk1972
Environment=PASSWORD=MySuperPass
Environment=PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
EnvironmentFile=/home/igk1972/.profile
WorkingDirectory=/home/igk1972/workspace
ExecStart=/usr/local/bin/code-server --host 0.0.0.0 --port 9999
Restart=on-failure
RestartSec=1
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment