diff --git a/scripts/init/freebsd/gogs b/scripts/init/freebsd/gogs index 42258c405c7..eb571574764 100644 --- a/scripts/init/freebsd/gogs +++ b/scripts/init/freebsd/gogs @@ -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"