Skip to content

Commit 250da5a

Browse files
committed
nixos: improved socket activation
1 parent 30a1aa7 commit 250da5a

File tree

1 file changed

+2
-1
lines changed
  • NixSupport/nixosModules/services

1 file changed

+2
-1
lines changed

NixSupport/nixosModules/services/app.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ in
66
systemd.services.app = {
77
description = "IHP App";
88
enable = true;
9-
after = [ "network.target" ];
9+
after = [ "network.target" "app.socket" ];
1010
wantedBy = [ "multi-user.target" ];
1111
serviceConfig = {
1212
Type = "notify";
@@ -15,6 +15,7 @@ in
1515
ExecStart = "${cfg.package}/bin/RunProdServer";
1616
KillSignal = "SIGINT";
1717
WatchdogSec = "60";
18+
Sockets = "app.socket";
1819
};
1920
environment =
2021
let

0 commit comments

Comments
 (0)