From 5f9e27d10fa1ff8beaa40f10f3109da03dcff27c Mon Sep 17 00:00:00 2001 From: alex-eg Date: Fri, 4 Jan 2019 15:23:49 +0300 Subject: [PATCH] update README for syncthing-keepalive --- syncthing-keepalive/README.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/syncthing-keepalive/README.org b/syncthing-keepalive/README.org index f45b800..185e0d2 100644 --- a/syncthing-keepalive/README.org +++ b/syncthing-keepalive/README.org @@ -12,5 +12,15 @@ Place ~check-syncthing.sh~ somewhere in you path, and add it's invocation to your crontab. + You also might want to use the ~timeout~ utility, since the script + contains while loops which in theory can stuck in an endless loop. + + So, your crontab entry for this script might look like this: + #+BEGIN_SRC + */10 * * * * /usr/bin/timeout -s 2 5 ~/bin/check-syncthing.sh + #+END_SRC + + Also don't forget to make the script executable. + *** Known limitations * Doesn't clean pid file even after successfull shutdown.