File tree 1 file changed +9
-13
lines changed
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
59
59
60
60
``` ini
61
61
[Unit]
62
-
63
- Description =VSCode in a browser
64
-
62
+ Description =Code Server IDE
65
63
After =network.target
66
64
67
65
[Service]
68
-
69
66
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
77
70
Restart =on-failure
71
+ RestartSec =10
78
72
79
- User =1000
73
+ ExecStart =<PATH TO BINARY> $(pwd)
80
74
81
- [Install]
75
+ StandardOutput =file:/var/log/code-server-output.log
76
+ StandardError =file:/var/log/code-server-error.log
82
77
78
+ [Install]
83
79
WantedBy =multi-user.target
84
80
```
85
81
You can’t perform that action at this time.
0 commit comments