fix systemd checking

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-12 01:02:03 +05:30
parent 4ccabc22ca
commit 98df064022
2 changed files with 9 additions and 4 deletions

6
debian/changelog vendored
View file

@ -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@debian.org> Fri, 12 Feb 2016 01:01:59 +0530
gitlab (8.4.3+dfsg-2) unstable; urgency=medium
[ Balasankar C ]

View file

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