From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C4D0158089 for ; Mon, 9 Oct 2023 10:55:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5DB82BC05A; Mon, 9 Oct 2023 10:55:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B98D82BC05A for ; Mon, 9 Oct 2023 10:55:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFA39335C67 for ; Mon, 9 Oct 2023 10:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A354FBD for ; Mon, 9 Oct 2023 10:54:57 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1696848850.a5dcfd414cf53fe80df074b7cc2930bbc60e7398.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gsad/files/, net-analyzer/gsad/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/gsad/files/gsad-22.init net-analyzer/gsad/gsad-22.6.0-r1.ebuild net-analyzer/gsad/gsad-22.6.0.ebuild X-VCS-Directories: net-analyzer/gsad/ net-analyzer/gsad/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: a5dcfd414cf53fe80df074b7cc2930bbc60e7398 X-VCS-Branch: master Date: Mon, 9 Oct 2023 10:54:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bc1c7da3-a1d9-4291-8628-5b3ca666e4a0 X-Archives-Hash: 29b901b4241470680fbeb8ae09692223 commit: a5dcfd414cf53fe80df074b7cc2930bbc60e7398 Author: Giuseppe Foti gmail com> AuthorDate: Sun Oct 8 07:05:37 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Oct 9 10:54:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5dcfd41 net-analyzer/gsad: fix OpenRC init script On first run the log file was created by root and was unwritable to gvm Signed-off-by: Giuseppe Foti gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33243 Signed-off-by: Florian Schmaus gentoo.org> net-analyzer/gsad/files/gsad-22.init | 6 +++++- net-analyzer/gsad/{gsad-22.6.0.ebuild => gsad-22.6.0-r1.ebuild} | 0 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net-analyzer/gsad/files/gsad-22.init b/net-analyzer/gsad/files/gsad-22.init index aae78b2e1ab8..a17f2dc1c084 100644 --- a/net-analyzer/gsad/files/gsad-22.init +++ b/net-analyzer/gsad/files/gsad-22.init @@ -3,6 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 : ${GSAD_USER:=gvm} +: ${GSAD_GROUP:=gvm} : ${GSAD_TIMEOUT:=30} : ${GSAD_PIDFILE:="/run/gsad/gsad.pid"} @@ -21,6 +22,10 @@ start_pre() { checkpath -d --mode 0755 --owner root /run/gsad } +start_post() { + checkpath -f --mode 0644 --owner "${GSAD_USER}:${GSAD_GROUP}" /var/log/gvm/gsad.log +} + stop_post() { if [ -f "${GSAD_PIDFILE}" ]; then ebegin "Removing PID file" @@ -28,4 +33,3 @@ stop_post() { eend $? fi } - diff --git a/net-analyzer/gsad/gsad-22.6.0.ebuild b/net-analyzer/gsad/gsad-22.6.0-r1.ebuild similarity index 100% rename from net-analyzer/gsad/gsad-22.6.0.ebuild rename to net-analyzer/gsad/gsad-22.6.0-r1.ebuild