From f2d050370fe8e8b29d1eb43cc214015c6a6e132b Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 12 Aug 2024 14:59:30 +0100 Subject: [PATCH 1/2] Allow arguments to device agent --- service/raspbian-install-device-agent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/raspbian-install-device-agent.sh b/service/raspbian-install-device-agent.sh index bdb60e4..3ebd027 100644 --- a/service/raspbian-install-device-agent.sh +++ b/service/raspbian-install-device-agent.sh @@ -94,7 +94,7 @@ User=$USER WorkingDirectory=/opt/flowfuse-device Environment="NODE_OPTIONS=--max_old_space_size=512" -ExecStart=/usr/bin/env flowfuse-device-agent +ExecStart=/usr/bin/env -S flowfuse-device-agent # Use SIGINT to stop KillSignal=SIGINT # Auto restart on crash From 7a89f12a095443e5f5de66fba19a4ebd3e6d5c53 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Mon, 12 Aug 2024 15:01:14 +0100 Subject: [PATCH 2/2] Update flowfuse-device.service --- service/flowfuse-device.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/flowfuse-device.service b/service/flowfuse-device.service index 6d17a19..111dd52 100644 --- a/service/flowfuse-device.service +++ b/service/flowfuse-device.service @@ -13,7 +13,7 @@ Group=pi WorkingDirectory=/opt/flowfuse-device Environment="NODE_OPTIONS=--max_old_space_size=512" -ExecStart=/usr/bin/env flowfuse-device-agent +ExecStart=/usr/bin/env -S flowfuse-device-agent # Use SIGINT to stop KillSignal=SIGINT # Auto restart on crash