mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/gitea: allow sending USR1 to gitea easily
this makes it reopen any logfiles it holds. doesn't do anything with supervise-daemon logging, but useful for other means for #12460
This commit is contained in:
parent
d4236b5b0b
commit
4eecfd4d54
@ -4,7 +4,7 @@
|
||||
# Maintainer: 6543 <6543@obermui.de>
|
||||
pkgname=gitea
|
||||
pkgver=1.18.3
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="A self-hosted Git service written in Go"
|
||||
url="https://gitea.io"
|
||||
arch="all"
|
||||
@ -123,6 +123,6 @@ package() {
|
||||
|
||||
sha512sums="
|
||||
4dabcafad5f4f9804f369cf248b351db68e80f193a4b2a5901f8c13b7cb6051b6b5ef1f283037376e545c3b76aabe703e947d1780ed4a4e630ec68adffa8afff gitea-1.18.3.tar.gz
|
||||
f859f46204fef596344fda53af7e945baca8639fd2839e90f2b4a8e361a2c77490be18473469cb40cb362671f5b2604e6ea18955dc0e56f44346ffaf2a838a91 gitea.initd
|
||||
2c757ad6159652bc628d71e09483452415ecf9327ad13a9838eec453b7feb34934401a2159350e40fb57ceda8b2abae0c57a3862e9ac054bcf9f0a424716172f gitea.initd
|
||||
431184faffa8996873d92d7b0d16bc4b1a0178d264cd2928d1f49b13ad3e6470d9ede7a18c12112deeeb38f0647ccc0b012e98bcbd96e7b8496a3dc18f5b1fb7 gitea.ini
|
||||
"
|
||||
|
@ -7,7 +7,7 @@ command_user="${GITEA_USER:-gitea}"
|
||||
command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'"
|
||||
supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/http.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/http.log}'"
|
||||
pidfile="/run/gitea.pid"
|
||||
#extra_started_commands="reload"
|
||||
extra_started_commands="reopen_log"
|
||||
|
||||
depend() {
|
||||
use logger dns
|
||||
@ -21,3 +21,9 @@ depend() {
|
||||
# ${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}"
|
||||
# eend $?
|
||||
#}
|
||||
|
||||
reopen_log() {
|
||||
ebegin "Reopening logfile for ${RC_SVCNAME}"
|
||||
${supervisor} ${RC_SVCNAME} --signal USR1 --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user