diff --git a/objectifier-module.nix b/objectifier-module.nix index 7729adc..c1d18df 100644 --- a/objectifier-module.nix +++ b/objectifier-module.nix @@ -40,7 +40,7 @@ in { config = mkIf cfg.enable { systemd.services.objectifier = { after = [ "network-online.target" ]; - wantedBy = [ "default.target" ]; + wantedBy = [ "multi-user.target" ]; reloadIfChanged = true; path = with pkgs; [ pythonYolo ]; environment = { @@ -68,7 +68,9 @@ in { # LockPersonality = true; # PermissionsStartOnly = true; WorkingDirectory = "${pkgs.objectifier}"; + LimitNOFILE = 4096; Restart = "on-failure"; + RestartSec = "5s"; Type = "simple"; PIDFile = "/run/objectifier.pid"; ExecStart = let