From owner-dev-commits-ports-all@freebsd.org Wed Jul 21 09:56:48 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1B25C660EB5; Wed, 21 Jul 2021 09:56:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GV9wJ04BPz4vYP; Wed, 21 Jul 2021 09:56:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DDC121C042; Wed, 21 Jul 2021 09:56:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16L9ul8x069938; Wed, 21 Jul 2021 09:56:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16L9ulfa069937; Wed, 21 Jul 2021 09:56:47 GMT (envelope-from git) Date: Wed, 21 Jul 2021 09:56:47 GMT Message-Id: <202107210956.16L9ulfa069937@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexander Leidinger Subject: git: ffeb9fabda31 - main - misc/openhab: cd to '/' on start MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: netchild X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ffeb9fabda31ad7195d2425ebe9e7fdc3091103d Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2021 09:56:48 -0000 The branch main has been updated by netchild: URL: https://cgit.FreeBSD.org/ports/commit/?id=ffeb9fabda31ad7195d2425ebe9e7fdc3091103d commit ffeb9fabda31ad7195d2425ebe9e7fdc3091103d Author: Alexander Leidinger AuthorDate: 2021-07-21 09:19:02 +0000 Commit: Alexander Leidinger 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 Tested by: Sandro Wirth --- 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