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-hbbs.service.j2

23 lines
784 B
Text
Raw Normal View History

{{ ansible_managed | comment }}
[Unit]
Description=Rustdesk Signal Server
After=network.target
Before=rustdesk-hbbr.service
[Service]
Type=simple
{% if rustdesk__require_key | bool %}
ExecStart={{ rustdesk__hbbs_executable_path }} --port {{ rustdesk__signal_server_port }} --relay-servers {{ rustdesk__relay_server_domain }}:{{ rustdesk__relay_server_port }} --key _
{% else %}
ExecStart={{ rustdesk__hbbs_executable_path }} --port {{ rustdesk__signal_server_port }} --relay-servers {{ rustdesk__relay_server_domain }}:{{ 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