From 9dea798db2ba472dcbb2031d4b254c6714ee8666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Fri, 30 Aug 2024 21:06:14 +0200 Subject: [PATCH] fix(paperless): timeout after waiting 60secs for document to finish uploading this prevents having a stuck service --- t470.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t470.nix b/t470.nix index 2db19f2..2a80f64 100644 --- a/t470.nix +++ b/t470.nix @@ -81,7 +81,7 @@ }; script = '' # wait for document to finish uploading - inotifywait --event close_write /var/lib/ftp/paperless-upload + inotifywait --event close_write --timeout 60 /var/lib/ftp/paperless-upload # copy documents over ${pkgs.rsync}/bin/rsync --verbose --stats --sparse --recursive --checksum /var/lib/ftp/paperless-upload/ paperless-upload@005540.xyz:/var/lib/paperless-upload '';