mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 20:16:20 +01:00
ac3cfad23d
#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 <art27@cantab.net> Co-authored-by: Florian Klink <flokli@flokli.de>
15 lines
249 B
Text
15 lines
249 B
Text
#!/sbin/openrc-run
|
|
|
|
DIR=/var/lib/gitea
|
|
USER=git
|
|
|
|
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=/run/gitea.pid
|
|
|
|
depend()
|
|
{
|
|
need net
|
|
}
|