mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 17:12:49 +01:00
Fix status command in FreeBSD init script
If the init script is called with `status`, the rc.subr(8) routines check if the first argument associated with the pid in the pidfile is equal to `procname`. By default, `procname` is equal to the value of `command`. In our case, `command` contains a space (i.e. has multiple arguments), so `procname` can never be equal to the first argument of the command associated with the pid. Set `procname` to the first argument of `command` to fix the `status` command of the init script.
This commit is contained in:
parent
e0f0f72a36
commit
4db0e1d340
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ load_rc_config $name
|
|||
: ${gogs_directory:="/home/git"}
|
||||
|
||||
command="${gogs_directory}/gogs web"
|
||||
procname="$(echo $command |cut -d' ' -f1)"
|
||||
|
||||
pidfile="${gogs_directory}/${name}.pid"
|
||||
|
||||
|
|
Loading…
Reference in a new issue