1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_rustdesk.git synced 2024-08-16 10:19:48 +02:00
ansible_role_rustdesk/templates/rustdesk-hbbr.service.j2

23 lines
600 B
Text
Raw Normal View History

{{ 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