mirror of
https://github.com/roles-ansible/ansible_role_rustdesk.git
synced 2024-08-16 10:19:48 +02:00
23 lines
600 B
Text
23 lines
600 B
Text
|
{{ ansible_managed | comment }}
|
||
|
[Unit]
|
||
|
Description=Rustdesk Relay Server
|
||
|
After=network.target rustdesk-hbbs.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
{% if rustdesk__require_key | bool %}
|
||
|
ExecStart={{ rustdesk__hbbr_executable_path }} --port {{ rustdesk__relay_server_port }} -k _
|
||
|
{% else %}
|
||
|
ExecStart={{ rustdesk__hbbr_executable_path }} --port {{ rustdesk__relay_server_port }}
|
||
|
{% endif %}
|
||
|
WorkingDirectory={{ rustdesk__home }}
|
||
|
User={{ rustdesk__user }}
|
||
|
Group={{ rustdesk__group }}
|
||
|
Restart=always
|
||
|
# Restart service after 10 seconds if node service crashes
|
||
|
RestartSec=10
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|