From 0e47f8ca3f437a41a565931ce71630bdfbaad363 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 17 Aug 2021 03:14:25 +0200 Subject: fleet/modules/public-inbox: add Requires/After of the corresponding socket to the httpd service This ensures they can be restarted together correctly, as well as ensuring the service has a socket available at all times. Change-Id: Ifa06e217cc2209aea4bcf28ed054d74cbc091a99 --- fleet/modules/public-inbox.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fleet') diff --git a/fleet/modules/public-inbox.nix b/fleet/modules/public-inbox.nix index 5c69fba..82241af 100644 --- a/fleet/modules/public-inbox.nix +++ b/fleet/modules/public-inbox.nix @@ -126,7 +126,12 @@ in { systemd.services.public-inbox-httpd = { description = "public-inbox mailing-list archive (web server)"; + + requires = [ "public-inbox-httpd.socket" ]; + after = [ "public-inbox-httpd.socket" ]; + inherit environment; + serviceConfig = { ExecStart = "${pkgs.public-inbox}/bin/public-inbox-httpd"; DynamicUser = true; -- cgit 1.4.1