Skip to content

Commit

Permalink
nixos: improved socket activation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jan 28, 2025
1 parent 30a1aa7 commit 250da5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NixSupport/nixosModules/services/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ in
systemd.services.app = {
description = "IHP App";
enable = true;
after = [ "network.target" ];
after = [ "network.target" "app.socket" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "notify";
Expand All @@ -15,6 +15,7 @@ in
ExecStart = "${cfg.package}/bin/RunProdServer";
KillSignal = "SIGINT";
WatchdogSec = "60";
Sockets = "app.socket";
};
environment =
let
Expand Down

0 comments on commit 250da5a

Please sign in to comment.