diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 22:03:23 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-07 22:03:23 +0200 |
commit | af67a8e80b7d5d8f4bd1f62366565c8967f24b1b (patch) | |
tree | a184513f058cbb3623f1cecd405313ae1457a540 /host | |
parent | More container stuff (diff) | |
download | Rory-Open-Architecture-af67a8e80b7d5d8f4bd1f62366565c8967f24b1b.tar.xz |
What the fuck systemd????????????????/
Diffstat (limited to 'host')
-rwxr-xr-x | host/Rory-nginx/services/containers/pluralcontactbotpoc/services/conduit.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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"; }; }; |