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