Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2017 11:27:26 +0000 (UTC)
From:      Torsten Zuehlsdorff <tz@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437349 - in head/www/gitlab: . files
Message-ID:  <201703311127.v2VBRQNA018389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tz
Date: Fri Mar 31 11:27:26 2017
New Revision: 437349
URL: https://svnweb.freebsd.org/changeset/ports/437349

Log:
  www/gitlab: enable GitLab to start on boot
  
  PR:           208793
  Submitted by: László Károlyi <laszlo@karolyi.hu>, Horst Kapfenberger <horst.kapfenberger@agoracon.at>

Modified:
  head/www/gitlab/Makefile
  head/www/gitlab/files/gitlab.in

Modified: head/www/gitlab/Makefile
==============================================================================
--- head/www/gitlab/Makefile	Fri Mar 31 11:18:02 2017	(r437348)
+++ head/www/gitlab/Makefile	Fri Mar 31 11:27:26 2017	(r437349)
@@ -4,6 +4,7 @@
 PORTNAME=	gitlab
 PORTVERSION=	8.16.8
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	www devel
 
 MAINTAINER=	tz@FreeBSD.org

Modified: head/www/gitlab/files/gitlab.in
==============================================================================
--- head/www/gitlab/files/gitlab.in	Fri Mar 31 11:18:02 2017	(r437348)
+++ head/www/gitlab/files/gitlab.in	Fri Mar 31 11:27:26 2017	(r437349)
@@ -67,7 +67,7 @@ test -f /etc/default/gitlab && . /etc/de
 
 # Switch to the app_user if it is not he/she who is running the script.
 if [ "$USER" != "$app_user" ]; then
-  eval su - "$app_user" -c $(echo \")$0 "$@"$(echo \"); exit;
+  eval su - "$app_user" -c $(echo \")/usr/local/etc/rc.d/gitlab "$@"$(echo \"); exit;
 fi
 
 # Switch to the gitlab path, exit on failure.
@@ -390,10 +390,10 @@ restart_gitlab(){
 ### Finally the input handling.
 
 case "$1" in
-  start)
+  start|quietstart)
         start_gitlab
         ;;
-  stop)
+  stop|faststop)
         stop_gitlab
         ;;
   restart)
@@ -407,7 +407,7 @@ case "$1" in
         exit $gitlab_status
         ;;
   *)
-        echo "Usage: service gitlab {start|stop|restart|reload|status}"
+        echo "Usage: service gitlab {start|quietstart|faststop|stop|restart|reload|status}"
         exit 1
         ;;
 esac



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703311127.v2VBRQNA018389>