From: Nathaniel Wesley Filardo Date: Fri, 15 Dec 2017 04:02:44 +0000 (-0500) Subject: Fix lcdproc-remind interaction by ensuring the log file exists X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=493867cf0d272c8d68dea4f6700b9dcddf4fcb84;p=acmetensortoys-snakecontrol 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. --- 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 } {