From 846dcbb94728c7eed90b8c10a53ed6a0fcabee1f Mon Sep 17 00:00:00 2001 From: Ayane Satomi Date: Tue, 1 Oct 2019 00:19:46 +0800 Subject: [PATCH] [doc/quickstart] use version from GH-379 (#1012) This is the same PR but with some fixes for v2. Co-Authored-by: nwtnsqrd <30381446+nwtnsqrd@users.noreply.github.com> Signed-off-by: Ayane Satomi --- doc/quickstart.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/doc/quickstart.md b/doc/quickstart.md index b7e3afb2..db76d15f 100644 --- a/doc/quickstart.md +++ b/doc/quickstart.md @@ -59,27 +59,23 @@ In some cases you might need to run code-server automatically once the host star ```ini [Unit] - -Description=VSCode in a browser - +Description=Code Server IDE After=network.target [Service] - Type=simple - -ExecStart=/usr/bin/code-server $(pwd) - -WorkingDirectory=$HOME/projects - -ExecStop=/sbin/start-stop-daemon --stop -x /usr/bin/code-server - +User= +EnvironmentFile=$HOME/.profile +WorkingDirectory=$HOME Restart=on-failure +RestartSec=10 -User=1000 +ExecStart= $(pwd) + +StandardOutput=file:/var/log/code-server-output.log +StandardError=file:/var/log/code-server-error.log [Install] - WantedBy=multi-user.target ```