It's safe to ignore the empty statefile file - monit overwrites it with valid data.
Regards, Martin On Feb 5, 2013, at 10:20 AM, Sergey B Kirpichev <skirpic...@gmail.com> wrote: > On Mon, Feb 04, 2013 at 10:58:05PM +0100, Martin Pala wrote: >> yet one note - the error is logged also when monit starts for the first time >> (this is minor bug, we'll fix) ... the error can be ignored, monit works >> normally even if the state wasn't read. > > Yes, I mean exactly this case. But I'm just not sure if it's really > safe to ignore this file with empty content (as does your patch). > > May be we can emit a warning? > > _______________________________________________ > monit-dev mailing list > monit-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/monit-dev _______________________________________________ monit-dev mailing list monit-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/monit-dev