Simple way to reload rules files

1,591 views
Skip to first unread message

Alex Wallace

unread,
Jun 29, 2014, 2:00:22 PM6/29/14
to ope...@googlegroups.com
Can I tell openHab to reload my rules files or do I need to restart the whole system?

Chris Jackson

unread,
Jun 29, 2014, 2:10:16 PM6/29/14
to ope...@googlegroups.com
The system will automatically reload any configuration files - it checks every 10 seconds to see if a file has changed.

Chris

Alex Wallace

unread,
Jun 29, 2014, 3:03:45 PM6/29/14
to ope...@googlegroups.com
Awesome. Is this documented somewhere? 

Kai Kreuzer

unread,
Jun 29, 2014, 3:11:22 PM6/29/14
to ope...@googlegroups.com
Awesome. Is this documented somewhere? 


# Configuration folders (must exist as a subdirectory of "configurations"; the value
# tells the number of seconds for the next scan of the directory for changes. A
# value of -1 deactivates the scan).
# A comma separated list can follow after the refresh value. This list defines a filter
# for valid file extensions for the models.
folder:items=10,items
folder:sitemaps=10,sitemap
folder:rules=10,rules
folder:scripts=10,script
folder:persistence=10,persist


Alex Wallace

unread,
Jun 29, 2014, 3:45:34 PM6/29/14
to ope...@googlegroups.com
Thanks Kai. I came back to say I found that :).

Now I am hunting for why openhab is claiming that port 8080 is occupied when starting up. I killed the process one time and now it seems upset everytime I start it back up.

As a result, nothing seems to want to work from the greent interface... I am somewhat threadjacking myself here, but since I have your attention... :)

12:41:35.705 WARN  o.e.j.u.c.AbstractLifeCycle[:199] - FAILED SelectChann...@0.0.0.0:8080: java.net.BindException: Address already in use

Massimo

unread,
Jun 30, 2014, 4:28:09 AM6/30/14
to ope...@googlegroups.com
@Kai: I'm trying to use -1 for the items file, as it is written in the main config file (I'm using OH 1.5.0), but the result is that the items file is not read. No items loaded. Is it correct? In my opinion, the items file would be read only at startup and then never update.
Massimo

Kai Kreuzer

unread,
Jun 30, 2014, 4:57:53 AM6/30/14
to ope...@googlegroups.com
That’s what I would expect, too. If it does not work, it might be a bug…

Am 30 Jun 2014 um 10:28 schrieb Massimo <ffar...@gmail.com>:

@Kai: I'm trying to use -1 for the items file, as it is written in the main config file (I'm using OH 1.5.0), but the result is that the items file is not read. No items loaded. Is it correct? In my opinion, the items file would be read only at startup and then never update.
Massimo

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

bergm...@yahoo.de

unread,
Jun 30, 2014, 4:58:42 AM6/30/14
to ope...@googlegroups.com
You can wait a bit until Jetty (the web server in openhab) completely was shutdown.
You could also check with netstat which process is occupying port 8080 kill this process manually.

On Linux this would look like this:
# netstat -np | grep 8080
tcp        0      0 192.168.50.103:8080     192.168.50.100:51536    VERBUNDEN   41932/java
tcp        0      0 192.168.50.103:8080     192.168.50.100:50176    VERBUNDEN   41932/java

Now you could kill process 41932 which is openhab.
# ps aux | grep 41932
mbergma+ 41932  3.5 16.8 2142548 345064 ?      Sl   Jun26 180:16 java -Dosgi.clean=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Djetty.port=8080 -Djetty.port.ssl=8443 -Djetty.home=. -Dlogback.configurationFile=configurations/logback.xml -Dfelix.fileinstall.dir=addons -Djava.library.path=lib -Djava.security.auth.login.config=./etc/login.conf -Dorg.quartz.properties=./etc/quartz.properties -Dequinox.ds.block_timeout=240000 -Dequinox.scr.waitTimeOnBlock=60000 -Dfelix.fileinstall.active.level=4 -Djava.awt.headless=true -jar server/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar


Manfred
Reply all
Reply to author
Forward
0 new messages