From b002e1e4f9a26c3b53deea0605debc2f173fab7f Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Sun, 1 Mar 2026 01:10:13 +0500 Subject: [PATCH] www-apps/goatcounter: fix openrc service The relevant change is: > command_args="serve" Signed-off-by: Anna (cybertailor) Vyalkova --- .../goatcounter/files/goatcounter.initd-r1 | 25 +++++++++++++++++++ www-apps/goatcounter/goatcounter-2.7.0.ebuild | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 www-apps/goatcounter/files/goatcounter.initd-r1 diff --git a/www-apps/goatcounter/files/goatcounter.initd-r1 b/www-apps/goatcounter/files/goatcounter.initd-r1 new file mode 100644 index 0000000000..441675a88e --- /dev/null +++ b/www-apps/goatcounter/files/goatcounter.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# shellcheck shell=sh +# +# Copyright 2025-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +supervisor="supervise-daemon" +description="GoatCounter web analytics daemon service" +command="/usr/bin/goatcounter" +command_args="serve" +command_user="goatcounter:goatcounter" +pidfile="/run/goatcounter.pid" +capabilities="^cap_net_bind_service" + +output_log="/var/log/goatcounter.log" +error_log="${output_log}" + +depend() { + need net + use dns firewall postgresql +} + +start_pre() { + checkpath -fo "${command_user}" "${output_log}" +} diff --git a/www-apps/goatcounter/goatcounter-2.7.0.ebuild b/www-apps/goatcounter/goatcounter-2.7.0.ebuild index dbe2b2ce8f..c5192a619b 100644 --- a/www-apps/goatcounter/goatcounter-2.7.0.ebuild +++ b/www-apps/goatcounter/goatcounter-2.7.0.ebuild @@ -41,7 +41,7 @@ src_install() { fowners goatcounter:goatcounter /var/db/goatcounter fperms 750 /var/db/goatcounter - newinitd "${FILESDIR}"/goatcounter.initd goatcounter + newinitd "${FILESDIR}"/goatcounter.initd-r1 goatcounter newconfd "${FILESDIR}"/goatcounter.confd goatcounter systemd_dounit "${FILESDIR}"/goatcounter.service