-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fixes for deb packaging + systemd support #2141
Conversation
openhab » openhab #2321 SUCCESS |
Hi Theo, Thanks for this contribution! A short question: "smarthome.userdata" in openHAB1? Best, Thomas
|
Hi Thomas, yes I found it in the RRD4j service and added it to db4o: Best,
|
i'd prefer to rename this variable to "openhab.userdata" in opposite to the variable used by ESH. Could you please rename both occurrences? Furthermore i am wondering wich of the commits are the fix for #1429? Assuming there could be an 1.6.3 release i would like add that fix to it but not the while PR. Thanks, Thomas E.-E. |
|
# it to yes for debugging purposes. | ||
# HTTP_PORT -- | ||
# HTTPS_PORT -- | ||
# TELNET_PORT -- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description here could be OSGi console port
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I will add it.
I've prepared a commit with the discussed changes. I will to some testing before committing the changes to this PR. |
Just tested the changes: looks good.
Any preferences? |
i would go for option 2) (fix the Persistence Services) |
…dme.txt and inline docs , add homepage and dependency "adduser" to the runtime control file
I will give it a try. |
openhab » openhab #2401 SUCCESS |
…dirs, always restart openHAB runtime on upgrade: RESTART_ON_UPGRADE check removed
openhab » openhab #2404 SUCCESS |
I'm not sure, but I think if the installation is upgraded the contents of workspace directory should be wiped out? |
According to this discussion I think wiping out of the workspace is done on every startup, so there is nothing to be done on upgrading the installation: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/openhab/NzpLBsO9mO0/wEpSfofma_QJ |
There is another open bug concerning the deb packages #886 |
Fixes for deb packaging + systemd support
Fix for #1429
Tested for debian 7 (sysv init) and debian 8 (systemd init).
It would be nice to have some more tests and also upgrade tests!
Changes:
because it was broken and may be have unintentional behavior for the greent addon.
How it works
(openHAB runtime user).
/etc/default/openhab configuration file.
script. It's postinst not preinst because user and group information can be
and is obtained from /etc/default/openhab.
group root.
and his primary group (mode 440). In the deb file they are owned by root:root, the
ownership will be adapted at daemon startup.
For now these files are /etc/openhab/configurations/user.cfg and /etc/openhab/jetty/etc/keystore.
These files / directories like all others are owned by root:root in the deb file.
The permissions and owner are adapted at daemon startup time. Therefore changes to
USER_AND_GROUP in /etc/default/openhab during application lifetime are honored.
runtime user are adopted at startup time.
the "version" and "uuid" files are created at runtime startup.
of log files for the openHAB runtime
runtime user.
database files, therefore /var/lib/openHAB/ is owned by the openHAB runtime user
the java system property smarthome.userdata=/var/lib/openhab.
the java system property smarthome.userdata=/var/lib/openhab.
Lack of systemd init files in deb package elastic/elasticsearch#8493
and relies on this recommendation from a debian forum:
http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2014-December/005077.html
functionality through /usr/share/openhab/bin/setpermissions.sh
setting PermissionsStartOnly=true