From owner-svn-ports-all@freebsd.org Fri Mar 31 11:27:28 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 191A8D27BBC; Fri, 31 Mar 2017 11:27:28 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD832642; Fri, 31 Mar 2017 11:27:27 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2VBRRcu018391; Fri, 31 Mar 2017 11:27:27 GMT (envelope-from tz@FreeBSD.org) Received: (from tz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2VBRQNA018389; Fri, 31 Mar 2017 11:27:26 GMT (envelope-from tz@FreeBSD.org) Message-Id: <201703311127.v2VBRQNA018389@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tz set sender to tz@FreeBSD.org using -f From: Torsten Zuehlsdorff Date: Fri, 31 Mar 2017 11:27:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437349 - in head/www/gitlab: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2017 11:27:28 -0000 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 , Horst Kapfenberger 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