[DRE-commits] [gitlab] 09/13: make gitlab starting conditional (systemd or sysv)
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Thu Feb 4 11:02:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository gitlab.
commit cc11e5314112f5c34f10a0dd97fa03a470b276a4
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Thu Feb 4 15:33:53 2016 +0530
make gitlab starting conditional (systemd or sysv)
---
debian/rake-tasks.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index 12ec416..399888d 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -14,7 +14,12 @@ echo "Precompiling assets..."
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
# Start gitlab
-invoke-rc.d gitlab start
+if grep systemd /proc/cmdline
+then
+ systemctl start gitlab.target
+else
+ invoke-rc.d gitlab start
+fi
# Check gitlab is configured correctly
su ${gitlab_user} -s /bin/sh -c 'bundle exec rake gitlab:check RAILS_ENV=production'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gitlab.git
More information about the Pkg-ruby-extras-commits
mailing list