diff options
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"; }; }; |