From 5b68bafe867727e77f416280672d3b6f10632fca 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:03:54 +0100 Subject: [PATCH] Update rustdesk-hbbs.service --- conf/rustdesk-hbbs.service | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conf/rustdesk-hbbs.service b/conf/rustdesk-hbbs.service index 2cb56cd..7781662 100644 --- a/conf/rustdesk-hbbs.service +++ b/conf/rustdesk-hbbs.service @@ -5,13 +5,14 @@ Description=RustDesk Signal Server Type=simple User=__APP__ Group=__APP__ -Restart=always + LimitNOFILE=1000000 WorkingDirectory=__INSTALL_DIR__/ -ExecStart=__INSTALL_DIR__/hbbs -r 127.0.0.1:__PORT_HBBS__ -StandardOutput=append:__INSTALL_DIR__/hbbs.log -StandardError=append:__INSTALL_DIR__/hbbs.error -# Restart service after 10 seconds if node service crashes +ExecStart=__INSTALL_DIR__/hbbs -k #-r 127.0.0.1:__PORT_HBBS__ +Restart=always +StandardOutput=append:/var/log/rustdesk/signalserver.log +StandardError=append:/var/log/rustdesk/signalserver.error + RestartSec=10 [Install]