summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/init/freebsd/gogs1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/init/freebsd/gogs b/scripts/init/freebsd/gogs
index 42258c405c..eb57157476 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"