Everything was working correctly, logs etc and then I opened the event and openhab log files from a Win7 machine, deleted all text and saved. Idea being to clear the log and restart openhab to see what needed attention.
Now openhab works perfectly but no longer creates these two log files.
I’m not much of a linux user. It kind of looks like my windows machine buggered the permissions on the two log files.
Note the audit.log file still works.
Ideas?
Thanks Neil.
@Thedannymullen For apt-get install, where did you delete and create the log file? I read where another user was missing the log viewer but everything else was good. Tried to use openhabian tools to fix, but no go, had an error that looked as if the SD card was corrupt.
Basically, the events.log and openhab.log should have the same user:group as the audit.log ie openhab:openhab.
For those that do the same, here is how to fix it:
openhabian@openHAB:~$ sudo /etc/init.d/openhab2 stop
openhabian@openHAB:~$ sudo chown openhab:openhab /var/log/openhab2/events.log
openhabian@openHAB:~$ sudo chown openhab:openhab /var/log/openhab2/openhab.log
openhabian@openHAB:~$ sudo /etc/init.d/openhab2 start
And away we go again.
Thanks for your help gentleman.