summaryrefslogtreecommitdiff
path: root/Biz/PodcastItLater/Worker.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/PodcastItLater/Worker.nix')
-rw-r--r--Biz/PodcastItLater/Worker.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/Biz/PodcastItLater/Worker.nix b/Biz/PodcastItLater/Worker.nix
index eafc95a..974a3ba 100644
--- a/Biz/PodcastItLater/Worker.nix
+++ b/Biz/PodcastItLater/Worker.nix
@@ -48,10 +48,15 @@ in {
"DATA_DIR=${cfg.dataDir}"
];
EnvironmentFile = "/run/podcastitlater/worker-env";
- KillSignal = "INT";
+ KillSignal = "TERM";
+ KillMode = "mixed";
Type = "simple";
Restart = "always";
RestartSec = "10";
+ # Give the worker time to finish current job
+ TimeoutStopSec = "300"; # 5 minutes
+ # Send SIGTERM first, then SIGKILL after timeout
+ SendSIGKILL = "yes";
};
};
};