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 ```