Skip to content

Commit cc4f56c

Browse files
sr229nwtnsqrd
andcommitted
[doc/quickstart] use version from GH-379
This is the same PR but with some fixes for v2. Co-Authored-by: nwtnsqrd <[email protected]> Signed-off-by: Ayane Satomi <[email protected]>
1 parent 42f7b5d commit cc4f56c

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

doc/quickstart.md

+9-13
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,23 @@ In some cases you might need to run code-server automatically once the host star
5959

6060
```ini
6161
[Unit]
62-
63-
Description=VSCode in a browser
64-
62+
Description=Code Server IDE
6563
After=network.target
6664

6765
[Service]
68-
6966
Type=simple
70-
71-
ExecStart=/usr/bin/code-server $(pwd)
72-
73-
WorkingDirectory=$HOME/projects
74-
75-
ExecStop=/sbin/start-stop-daemon --stop -x /usr/bin/code-server
76-
67+
User=<USER>
68+
EnvironmentFile=$HOME/.profile
69+
WorkingDirectory=$HOME
7770
Restart=on-failure
71+
RestartSec=10
7872

79-
User=1000
73+
ExecStart=<PATH TO BINARY> $(pwd)
8074

81-
[Install]
75+
StandardOutput=file:/var/log/code-server-output.log
76+
StandardError=file:/var/log/code-server-error.log
8277

78+
[Install]
8379
WantedBy=multi-user.target
8480
```
8581

0 commit comments

Comments
 (0)