From f139ad69a16679d0b50d52b94d8e2be81c533eee Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Mon, 9 Jan 2023 20:00:30 -0700 Subject: [PATCH 1/2] add logging to the .service file --- systemd/rustdesk-hbbs.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd/rustdesk-hbbs.service b/systemd/rustdesk-hbbs.service index 16427f1..344f015 100644 --- a/systemd/rustdesk-hbbs.service +++ b/systemd/rustdesk-hbbs.service @@ -10,6 +10,8 @@ WorkingDirectory=/var/lib/rustdesk-server/ User= Group= Restart=always +StandardOutput=append:/var/log/rustdesk/rustdesk-hbbs.log +StandardError=append:/var/log/rustdesk/rustdesk-hbbs.error # Restart service after 10 seconds if node service crashes RestartSec=10 From 6538023a119c8002965074fee49ed8d5555ddea4 Mon Sep 17 00:00:00 2001 From: botanicvelious Date: Mon, 9 Jan 2023 20:00:55 -0700 Subject: [PATCH 2/2] Update rustdesk-hbbr.service --- systemd/rustdesk-hbbr.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd/rustdesk-hbbr.service b/systemd/rustdesk-hbbr.service index 43396a3..2ef10e2 100644 --- a/systemd/rustdesk-hbbr.service +++ b/systemd/rustdesk-hbbr.service @@ -10,6 +10,8 @@ WorkingDirectory=/var/lib/rustdesk-server/ User= Group= Restart=always +StandardOutput=append:/var/log/rustdesk/rustdesk-hbbr.log +StandardError=append:/var/log/rustdesk/rustdesk-hbbr.error # Restart service after 10 seconds if node service crashes RestartSec=10