File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff 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
6563After =network.target
6664
6765[Service]
68-
6966Type =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
7770Restart =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]
8379WantedBy =multi-user.target
8480```
8581
You can’t perform that action at this time.
0 commit comments