From f10b031f17e54a2ffd3916c9cd7a58c3e590a057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 31 Oct 2023 23:13:18 +0100 Subject: [PATCH] fix --- conf/rustdesk-hbbs.service | 13 +++++++------ conf/rustdesk-server.service | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/conf/rustdesk-hbbs.service b/conf/rustdesk-hbbs.service index 5db821d..77f7252 100644 --- a/conf/rustdesk-hbbs.service +++ b/conf/rustdesk-hbbs.service @@ -1,17 +1,18 @@ [Unit] -Description=RustDesk Signal Server +Description=Rustdesk Signal Server [Service] Type=simple User=__APP__ Group=__APP__ +Restart=always LimitNOFILE=1000000 WorkingDirectory=__INSTALL_DIR__/ -ExecStart=__INSTALL_DIR__/hbbs -r 127.0.0.1:__PORT_HBBS__ -Restart=always -StandardOutput=append:/var/log/rustdesk/signalserver.log -StandardError=append:/var/log/rustdesk/signalserver.error +ExecStart=__INSTALL_DIR__/hbbs -r 127.0.0.1 -p __PORT_HBBS__ +#StandardOutput=append:__INSTALL_DIR__/hbbs.log +#StandardError=append:__INSTALL_DIR__/hbbs.error +# Restart service after 10 seconds if node service crashes RestartSec=10 [Install] -WantedBy=multi-user.target +WantedBy=multi-user.target \ No newline at end of file diff --git a/conf/rustdesk-server.service b/conf/rustdesk-server.service index 86c28e7..e8bc450 100644 --- a/conf/rustdesk-server.service +++ b/conf/rustdesk-server.service @@ -7,7 +7,7 @@ User=__APP__ Group=__APP__ LimitNOFILE=1000000 WorkingDirectory=__INSTALL_DIR__/ -ExecStart=__INSTALL_DIR__/hbbr +ExecStart=__INSTALL_DIR__/hbbr -p __PORT_HBBR__ Restart=always StandardOutput=append:/var/log/rustdesk/relayserver.log StandardError=append:/var/log/rustdesk/relayserver.error