From: "Patrick Lauer" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/, www-apps/grafana-bin/files/
Date: Mon, 18 Jul 2016 15:35:38 +0000 (UTC) [thread overview]
Message-ID: <1468856134.21e1ed587a5f803da0b927a8f3f95e3e5f624a11.patrick@gentoo> (raw)
commit: 21e1ed587a5f803da0b927a8f3f95e3e5f624a11
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 18 15:33:01 2016 +0000
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 15:35:34 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21e1ed58
www-apps/grafana-bin: Fix pidfile handling
Package-Manager: portage-2.3.0
www-apps/grafana-bin/files/grafana.initd.2 | 35 ++++++++++++++++++++++
...in-3.1.0.ebuild => grafana-bin-3.1.0-r1.ebuild} | 2 +-
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/www-apps/grafana-bin/files/grafana.initd.2 b/www-apps/grafana-bin/files/grafana.initd.2
new file mode 100644
index 0000000..14b0b1f
--- /dev/null
+++ b/www-apps/grafana-bin/files/grafana.initd.2
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need localmount
+}
+
+start() {
+ ebegin "Starting grafana server"
+
+ start-stop-daemon --start -b \
+ --make-pidfile \
+ --pidfile /run/grafana.pid \
+ --chdir /usr/share/grafana \
+ --user ${GRAFANA_USER}:${GRAFANA_GROUP} \
+ --exec /usr/bin/grafana-server -- \
+ -config=/etc/grafana/grafana.ini \
+ cfg:default.paths.data=/var/lib/grafana \
+ cfg:default.paths.logs=/var/log/grafana
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping grafana server"
+
+ start-stop-daemon --stop \
+ --pidfile /run/grafana.pid \
+ --user "${GRAFANA_USER}" \
+ --retry=TERM/20/KILL/5
+
+ eend $?
+}
diff --git a/www-apps/grafana-bin/grafana-bin-3.1.0.ebuild b/www-apps/grafana-bin/grafana-bin-3.1.0-r1.ebuild
similarity index 95%
rename from www-apps/grafana-bin/grafana-bin-3.1.0.ebuild
rename to www-apps/grafana-bin/grafana-bin-3.1.0-r1.ebuild
index 159d2d8..3752348 100644
--- a/www-apps/grafana-bin/grafana-bin-3.1.0.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-3.1.0-r1.ebuild
@@ -43,7 +43,7 @@ src_install() {
dobin bin/grafana-server
newconfd "${FILESDIR}"/grafana.confd grafana
- newinitd "${FILESDIR}"/grafana.initd grafana
+ newinitd "${FILESDIR}"/grafana.initd.2 grafana
keepdir /var/{lib,log}/grafana
fowners grafana:grafana /var/{lib,log}/grafana
next reply other threads:[~2016-07-18 15:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-18 15:35 Patrick Lauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-12-01 13:05 [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/, www-apps/grafana-bin/files/ Tobias Klausmann
2017-04-11 8:56 Patrick Lauer
2017-04-11 13:49 Patrice Clement
2017-04-11 16:39 Patrice Clement
2017-08-21 8:15 Tobias Klausmann
2021-02-21 19:19 Thomas Deutschmann
2021-03-27 1:03 Thomas Deutschmann
2023-03-27 4:55 罗百科
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=1468856134.21e1ed587a5f803da0b927a8f3f95e3e5f624a11.patrick@gentoo \
--to=patrick@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