public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gsad/files/, net-analyzer/gsad/
Date: Mon,  9 Oct 2023 10:54:57 +0000 (UTC)	[thread overview]
Message-ID: <1696848850.a5dcfd414cf53fe80df074b7cc2930bbc60e7398.flow@gentoo> (raw)

commit:     a5dcfd414cf53fe80df074b7cc2930bbc60e7398
Author:     Giuseppe Foti <foti.giuseppe <AT> gmail <DOT> com>
AuthorDate: Sun Oct  8 07:05:37 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> 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 <foti.giuseppe <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33243
Signed-off-by: Florian Schmaus <flow <AT> 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


             reply	other threads:[~2023-10-09 10:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09 10:54 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-14  7:53 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/gsad/files/, net-analyzer/gsad/ Florian Schmaus
2023-08-11  9:08 Florian Schmaus
2023-07-03  8:15 Florian Schmaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1696848850.a5dcfd414cf53fe80df074b7cc2930bbc60e7398.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox