misc/openhab: cd to '/' on start

/root may have the rights "o=", which will result in issues on start.
Adapt the command line arguments to daemon(8) to cd to /.

Reported by:	Sandro Wirth <sandro.wirth@gmx.de>
Tested by:	Sandro Wirth <sandro.wirth@gmx.de>
This commit is contained in:
Alexander Leidinger 2021-07-21 11:19:02 +02:00
parent 0898907884
commit ffeb9fabda
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= openhab
PORTVERSION= 3.1.0
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= misc java
MASTER_SITES= https://openhab.jfrog.io/artifactory/libs-release-local/org/openhab/distro/openhab/${PORTVERSION}/
DISTNAME= openhab-${PORTVERSION}

View file

@ -65,7 +65,7 @@ export JAVA_VERSION=11
pidfile=/var/run/${name}/${name}.pid
command=/usr/sbin/daemon
command_args="-p ${pidfile} -t openhab ${OPENHAB_HOME}/start.sh server"
command_args="-p ${pidfile} -c -t openhab ${OPENHAB_HOME}/start.sh server"
openhab_stop() {
${OPENHAB_RUNTIME}/bin/stop