From cc4f56cb0946f37c7203c350aeae1ba32679cc3f Mon Sep 17 00:00:00 2001 From: Ayane Satomi Date: Sat, 21 Sep 2019 03:37:03 +0800 Subject: [PATCH] [doc/quickstart] use version from GH-379 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 b7e3afb23f7a..db76d15fcafb 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) -[Install] +StandardOutput=file:/var/log/code-server-output.log +StandardError=file:/var/log/code-server-error.log +[Install] WantedBy=multi-user.target ```