From ac3cfad23dc08f24d2bb8914313162e281de7326 Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 15 Aug 2020 21:15:27 +0100 Subject: Make the default PID file compile-time settable (#12485) #12391 offered to change the default PID file from /var/run/gitea.pid however in discussion it was decided that this could break users of older systems. An alternative was offered that we could make the PID file compile/link time settable. This PR does this, and changes the name of the setting from CustomPID to simply PIDFile. It also updates the from-source docs to show how to change the compiler settings to do this. Closes #12391 Signed-off-by: Andrew Thornton Co-authored-by: Florian Klink --- contrib/init/gentoo/gitea | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/init/gentoo/gitea') diff --git a/contrib/init/gentoo/gitea b/contrib/init/gentoo/gitea index c40fc93f5f..e423eae54d 100644 --- a/contrib/init/gentoo/gitea +++ b/contrib/init/gentoo/gitea @@ -7,7 +7,7 @@ start_stop_daemon_args="--user ${USER} --chdir ${DIR}" command="/usr/local/bin/gitea" command_args="web -c /etc/gitea/app.ini" command_background=yes -pidfile=/var/run/gitea.pid +pidfile=/run/gitea.pid depend() { -- cgit v1.2.3