Page 1 of 1
Close Domoticz from Command Line (Windows)
Posted: Tuesday 30 August 2016 14:54
by Richie1972
Hi,
Not sure if this is the right part of the forum to ask, but is there a way of exiting from Domoticz via the command line?
Something like domoticz.exe -q
I start the app via command line, but there are times when i need to restart it and i'd rather not use something like taskkill (or any other "dirty" method) to stop it prior to starting the app again.
Any ideas?
Re: Close Domoticz from Command Line (Windows)
Posted: Wednesday 31 August 2016 11:37
by Richie1972
Ok, so using taskkill /IM domoticz.exe (without the /F), which seems to work.
So, I now have a working domoticz Monitor that locates a new entry in the domoticz log file when the OpenZWave driver fails.
It then terminates Domoticz, diconnects and reconnects the USB controller
Runs Domoticz and emails me to tell me it has restarted.
Everything works very nicely, but every time Domoticz starts it opens a browser window - is there any way of preventing Domoticz unnecessarily opening these windows?
Re: Close Domoticz from Command Line (Windows)
Posted: Wednesday 31 August 2016 11:58
by Richie1972
Actually, think i've found it from another post:
The following command line parameters are available:
-www port (for example -www 8080)
-sslwww port (secure web port, for example -sslwww 443)
-dbase file_path (for example D:\domoticz.db or /opt/domoticz/domoticz.db)
-verbose x (where x=0 is none, x=1 is debug)
-startupdelay seconds (default=0)
-nowwwpwd (in case you forgot the webserver username/password)
-nobrowser (do not start web browser) (Windows Only)
-log file_path (for example D:\domoticz.log)
-loglevel (0=All, 1=Status+Error, 2=Error)
-nocache (do not cache HTML pages (for editing)
-daemon (run as background daemon) (Unix Only)
-syslog (use syslog as log output) (Unix Only)