From af67a8e80b7d5d8f4bd1f62366565c8967f24b1b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 7 Sep 2023 22:03:23 +0200 Subject: What the fuck systemd????????????????/ --- .../services/containers/pluralcontactbotpoc/services/conduit.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix index 12cdb41..5d77c89 100755 --- a/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix +++ b/host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix @@ -20,7 +20,7 @@ before = ["conduit.service"]; # So the registration can be used by Conduit. script = '' - reg_token=`cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -w 256 | head -n 1` + reg_token=`cat /dev/urandom | tr -dc a-zA-Z0-9 | fold -c 256` mkdir -p /run/systemd/system/conduit.service.d echo $reg_token > /run/conduit-registration-token echo Environment=\"CONDUIT_REGISTRATION_TOKEN=$reg_token\" > /run/systemd/system/conduit.service.d/override.conf @@ -29,6 +29,8 @@ serviceConfig = { User = "root"; Group = "root"; + IgnoreSIGPIPE = true; + Restart = "on-failure"; }; }; -- cgit 1.4.1