On Thu, 23.01.14 10:51, Marwan Rabbâa (wagha...@gmail.com) wrote:
[Install]
WantedBy=gitlab.target
* gitlab-unicorn.service *
[Unit]
Description=GitLab Unicorn Server
[Service]
User=git
WorkingDirectory=/var/www/gitlab
Environment=RAILS_ENV=production
Hi,
I want to install gitlab (sidekiq and unicorn are required) on my fresh
fedora installation.
New to systemd manager, I've some trouble install this wonderful app.
If I've understand systemd, I have to create 3 files : one per service (1
for sidekiq, 1 for unicorn, and 1 for gitlab).
there is already *Type=forking *in the service section
2014/1/23 Mathieu Bridon boche...@fedoraproject.org
On Thu, 2014-01-23 at 10:51 +0100, Marwan Rabbâa wrote:
that is not very useful for me. /var/www/gitlab/script/sidekiq is just
a litle startup script for sidekiq
Maybe this script *needs* a tty? Maybe it doesn't run as user git,
e.g. wrong rights, wrong home directory?
Try to put a set -x at the top of the script and restart it, then
you'll see where it failed. Then, look into that program and find out
why it failed. If in doubt, pepper it with debug
On Thu, 2014-01-23 at 10:51 +0100, Marwan Rabbâa wrote:
that is not very useful for me. /var/www/gitlab/script/sidekiq is just
a litle startup script for sidekiq
#!/usr/bin/env sh
cd /var/www/gitlab
/usr/local/bin/bundle exec sidekiq -q
On Thu, 2014-01-23 at 11:16 +0100, Marwan Rabbâa wrote:
there is already Type=forking in the service section
Indeed, I got confused between your two services (the second one doesn't
have it).
And the systemctl status output says the exit code was 1, not 0, so it
has indeed nothing to do with
Marwan, he specified it, see above the line directly after [Service]
[Service]
Type=forking
User=git
WorkingDirectory=/var/www/gitlab
Environment=RAILS_ENV=production
One thing that makes me wonder is however his sidekick.target thingy.
It says that Redis and Postgresql should be started,