From 7c46b40fdee08e890fe9b2ccc4bd4afc6aa6365b Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 18 Mar 2022 12:53:15 +0100 Subject: [PATCH] TITAN/shinobi: configure OOM policy --- hosts/TITAN/extras/shinobi.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/TITAN/extras/shinobi.nix b/hosts/TITAN/extras/shinobi.nix index c03861a..429d306 100644 --- a/hosts/TITAN/extras/shinobi.nix +++ b/hosts/TITAN/extras/shinobi.nix @@ -53,6 +53,9 @@ in User = "shinobi"; ExecStart = "${pkgs.nodejs-14_x}/bin/node ${shinobi}/bin/shinobi"; KillSignal = "HUP"; + OOMPolicy = "continue"; + Restart = "on-abnormal"; + RestartSec = "5s"; }; environment.NODE_PATH = "${shinobi}/lib/node_modules/shinobi/node_modules"; };