mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
nixos/invidious: add automaticRestart option
This commit is contained in:
parent
eafbb465a9
commit
2e582d4edc
@ -41,6 +41,12 @@ let
|
|||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
|
SystemCallFilter = [ "@system-service" "~@privileged" "~@resources" ];
|
||||||
|
|
||||||
|
# Because of various issues Invidious must be restarted often, at least once a day, ideally
|
||||||
|
# every hour.
|
||||||
|
# This option enables the automatic restarting of the Invidious instance.
|
||||||
|
Restart = lib.mkDefault "always";
|
||||||
|
RuntimeMaxSec = lib.mkDefault "1h";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user