Page 1 of 1

logging problem

Posted: Saturday 22 July 2017 11:40
by heistje
Hi
could use some help with enabling/finding the logfile.
Running Domoticz on a Qnap (Ubuntu 16.04)

Enabled the Domoticz.sh file (removing the # before DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt")
restarted Domoticz
but no succes, can't find the domoticz.txt-file...

thx for any suggestion!

Re: logging problem

Posted: Saturday 22 July 2017 20:21
by SweetPants
If you start Domoticz as a service this /home/pi/domoticz/domotcz.sh is not used. You should change /etc/init.d/domoticz.sh

Re: logging problem

Posted: Monday 24 July 2017 12:27
by heistje
Thx for your reply!

I'm browsing/searching with WinSCP and I can browse the whole Ubuntu system but
The problem is that I can't find an other domoticz.sh file.
Not even in /etc/init.d/domoticz.sh
The only domoticz.sh I've found is the one in /home/'my name'/domoticz/

Thx for your help!

Re: logging problem

Posted: Monday 24 July 2017 14:31
by SweetPants
heistje wrote:I'm browsing/searching with WinSCP and I can browse the whole Ubuntu system but
The problem is that I can't find an other domoticz.sh file.
Are you sure you can browse the whole system? /etc/init.d/domoticz.sh is owned by root, I don't think you can sudo in WinSCP!!!
Try logging in with ssh and your username and excute ls -lia /etc/init.d/domoticz.sh. I get this on my Ubuntu system:

<yourname>@nuc:/$ ls -lia /etc/init.d/domoticz.sh
525065 -rwxr-xr-x 1 root root 3986 Mar 6 16:01 /etc/init.d/domoticz.sh

Re: logging problem

Posted: Wednesday 30 August 2017 22:31
by heistje
Sorry for my late reaction (long holiday :D )
Thx for your reply!
Tried your suggestion (with Putty) and got this:
Capture.JPG
Capture.JPG (17.04 KiB) Viewed 1216 times
??

Re: logging problem

Posted: Wednesday 30 August 2017 22:53
by heistje
took a little lesson on Putty and this are all files that I can find in the directory:
Capture2.JPG
Capture2.JPG (56.23 KiB) Viewed 1211 times
no trace of domoticz.sh ....