2026-07-10 15:44:18 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=code-server - VS Code on remote Linux
|
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
User={{ linux_dev_station_service_user }}
|
|
|
|
|
Group={{ linux_dev_station_service_user }}
|
|
|
|
|
WorkingDirectory={{ linux_dev_station_workspace_dir }}
|
2026-07-10 17:15:24 -04:00
|
|
|
ExecStart=/bin/zsh -i {{ linux_dev_station_scripts_dir }}/start-ide.sh
|
2026-07-10 15:44:18 +02:00
|
|
|
Restart=always
|
|
|
|
|
RestartSec=5
|
|
|
|
|
StandardOutput=append:{{ linux_dev_station_logs_dir }}/code-server.log
|
|
|
|
|
StandardError=append:{{ linux_dev_station_logs_dir }}/code-server.err.log
|
|
|
|
|
|
|
|
|
|
Environment="HOME={{ linux_dev_station_service_home }}"
|
|
|
|
|
Environment="PATH={{ linux_dev_station_path }}"
|
2026-07-10 17:15:24 -04:00
|
|
|
Environment="TMPDIR={{ linux_dev_station_service_home }}/.cache/tmp"
|
2026-07-10 15:44:18 +02:00
|
|
|
{% if linux_dev_station_ssh_agent_enabled | bool %}
|
|
|
|
|
Environment="SSH_AUTH_SOCK={{ linux_dev_station_ssh_agent_socket }}"
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|