From 8040cdfe2eb608b6d38e92069482e3e0c799395d Mon Sep 17 00:00:00 2001 From: Lyes Saadi Date: Fri, 31 Jul 2026 17:09:52 +0200 Subject: [PATCH] Adding autorestart for stirling --- hosts/vm/livre/stirling.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/vm/livre/stirling.nix b/hosts/vm/livre/stirling.nix index f5fadfc..1abe54d 100644 --- a/hosts/vm/livre/stirling.nix +++ b/hosts/vm/livre/stirling.nix @@ -4,6 +4,7 @@ environment.systemPackages = with pkgs; [ imagemagick # Pour la compression des PDFs ]; + services.stirling-pdf = { enable = true; environment = { @@ -17,6 +18,11 @@ }; }; + systemd.services.stirling-pdf.serviceConfig = { + Restart = "always"; + RestartSec = "5s"; + }; + services.nginx = { enable = true;