Skip to content
Snippets Groups Projects
Verified Commit 52c2b3c6 authored by Ezri's avatar Ezri :upside_down:
Browse files

update code-server systemd file


Signed-off-by: default avatarEric Zhu <eric@korzq.xyz>
parent a14f212a
No related branches found
No related tags found
No related merge requests found
get the zip:
file.managed:
- name: /root/code/server.zip
- name: /root/server.tar.gz
- source:
- 'https://github.com/cdr/code-server/releases/download/1.1156-vsc1.33.1/code-server1.1156-vsc1.33.1-linux-x64.tar.gz'
- source_hash: 74157bc1f55f5d9d20214ad0003662885cab40bb824bff30fd74604208a0fb02bb7c875220d9320a3ec0cf7e9f12c99198f3088e61ddd7e45527ecfb64f697fb
- makedirs: True
- source_hash: 4ee768c461e5c58f2ec1eeaafb8174164eb4f1ac617e1a342ccf51c36a073c13
codeserver_extracted:
archive.extracted:
- name: /root
- source: /root/server.tar.gz
start_codeserver:
cmd.run:
- name: nohup ./code-server1.1156-vsc1.33.1-linux-x64/code-server
- bg: True
[Unit]
Description=code-server
After=syslog.target network.target
[Service]
User=0
Group=0
WorkingDirectory=/root
ExecStart=
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment