TITAN/shinobi: configure OOM policy
This commit is contained in:
parent
e11fee895d
commit
7c46b40fde
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ in
|
||||||
User = "shinobi";
|
User = "shinobi";
|
||||||
ExecStart = "${pkgs.nodejs-14_x}/bin/node ${shinobi}/bin/shinobi";
|
ExecStart = "${pkgs.nodejs-14_x}/bin/node ${shinobi}/bin/shinobi";
|
||||||
KillSignal = "HUP";
|
KillSignal = "HUP";
|
||||||
|
OOMPolicy = "continue";
|
||||||
|
Restart = "on-abnormal";
|
||||||
|
RestartSec = "5s";
|
||||||
};
|
};
|
||||||
environment.NODE_PATH = "${shinobi}/lib/node_modules/shinobi/node_modules";
|
environment.NODE_PATH = "${shinobi}/lib/node_modules/shinobi/node_modules";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue