Close Domoticz from Command Line (Windows)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
Richie1972
Posts: 44
Joined: Saturday 09 April 2016 10:23
Target OS: Windows
Domoticz version:
Contact:

Close Domoticz from Command Line (Windows)

Post 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?
Richie

Aeo S5 USB
3 FGSD002 Smoke
1 FGSM Motion
4 FGBS Binary
1 Horstmann ASR-ZW
2 Aeo Relay
1 FGS222 2xRelay
2 Aeo Multi Gen4
2 Everspring relay
1 Aeo Repeater
1 Popp Switch
1 TKB socket
4 Popp Dimmer
User avatar
Richie1972
Posts: 44
Joined: Saturday 09 April 2016 10:23
Target OS: Windows
Domoticz version:
Contact:

Re: Close Domoticz from Command Line (Windows)

Post 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?
Richie

Aeo S5 USB
3 FGSD002 Smoke
1 FGSM Motion
4 FGBS Binary
1 Horstmann ASR-ZW
2 Aeo Relay
1 FGS222 2xRelay
2 Aeo Multi Gen4
2 Everspring relay
1 Aeo Repeater
1 Popp Switch
1 TKB socket
4 Popp Dimmer
User avatar
Richie1972
Posts: 44
Joined: Saturday 09 April 2016 10:23
Target OS: Windows
Domoticz version:
Contact:

Re: Close Domoticz from Command Line (Windows)

Post 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)
Richie

Aeo S5 USB
3 FGSD002 Smoke
1 FGSM Motion
4 FGBS Binary
1 Horstmann ASR-ZW
2 Aeo Relay
1 FGS222 2xRelay
2 Aeo Multi Gen4
2 Everspring relay
1 Aeo Repeater
1 Popp Switch
1 TKB socket
4 Popp Dimmer
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest