Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 09:56:47 GMT
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ffeb9fabda31 - main - misc/openhab: cd to '/' on start
Message-ID:  <202107210956.16L9ulfa069937@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ffeb9fabda31ad7195d2425ebe9e7fdc3091103d

commit ffeb9fabda31ad7195d2425ebe9e7fdc3091103d
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2021-07-21 09:19:02 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2021-07-21 09:56:39 +0000

    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>
---
 misc/openhab/Makefile         | 2 +-
 misc/openhab/files/openhab.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/openhab/Makefile b/misc/openhab/Makefile
index e78d4a5b9c4c..a5c1a7b13aab 100644
--- a/misc/openhab/Makefile
+++ b/misc/openhab/Makefile
@@ -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}
diff --git a/misc/openhab/files/openhab.in b/misc/openhab/files/openhab.in
index 3ff1043d3e7c..5900ce6669e7 100644
--- a/misc/openhab/files/openhab.in
+++ b/misc/openhab/files/openhab.in
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107210956.16L9ulfa069937>