svn commit: r437349 - in head/www/gitlab: . files
Torsten Zuehlsdorff
tz at FreeBSD.org
Fri Mar 31 11:27:28 UTC 2017
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 at karolyi.hu>, Horst Kapfenberger <horst.kapfenberger at 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 at 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
More information about the svn-ports-all
mailing list