From 493867cf0d272c8d68dea4f6700b9dcddf4fcb84 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Thu, 14 Dec 2017 23:02:44 -0500 Subject: [PATCH] Fix lcdproc-remind interaction by ensuring the log file exists At startup, until cron kicks off remind, we won't have a log file and inotify will fail. This is a tranient failure, at least. --- bin/lcdproc-remind.expect | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/lcdproc-remind.expect b/bin/lcdproc-remind.expect index a44bbbd..d983259 100755 --- a/bin/lcdproc-remind.expect +++ b/bin/lcdproc-remind.expect @@ -45,6 +45,9 @@ proc spawninotify {filename} { set filename "/run/snakecontrol/remind.out" +# Ensure that the file exists before we go to watch it. +system "touch ${filename}" + set waitsid [spawninotify ${filename}] while { true } { -- 2.50.1