[DRE-commits] [gitlab] 01/01: fix systemd checking

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Feb 11 19:36:41 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 98df06402246befd8f05e7e863d0e6c9f8ea6fbd
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Feb 12 01:02:03 2016 +0530

    fix systemd checking
---
 debian/changelog     | 6 ++++++
 debian/rake-tasks.sh | 7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b42c900..eddf464 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+gitlab (8.4.3+dfsg-3) unstable; urgency=medium
+
+  * Check if /run/systemd/system dirctory exist for systemd
+
+ -- Pirate Praveen <praveen at debian.org>  Fri, 12 Feb 2016 01:01:59 +0530
+
 gitlab (8.4.3+dfsg-2) unstable; urgency=medium
 
   [ Balasankar C ]
diff --git a/debian/rake-tasks.sh b/debian/rake-tasks.sh
index ebf1b1d..9c518a1 100755
--- a/debian/rake-tasks.sh
+++ b/debian/rake-tasks.sh
@@ -12,11 +12,10 @@ echo "Precompiling assets..."
 su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile RAILS_ENV=production'
 
 # Start gitlab
-if grep systemd /proc/1/cmdline
-then
-	systemctl start gitlab.target
+if [ -d "/run/systemd/system" ]; then
+  systemctl start gitlab.target
 else
-	invoke-rc.d gitlab start
+  invoke-rc.d gitlab start
 fi
 
 # Workaround for #813770

-- 
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