Re: [systemd-devel] Installing gitlab

2014-01-24 Thread Lennart Poettering
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=prod

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Holger Schurig
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 starte

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Mathieu Bridon
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 wh

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Holger Schurig
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

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Mathieu Bridon
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

Re: [systemd-devel] Installing gitlab

2014-01-23 Thread Marwan Rabbâa
there is already *Type=forking *in the service section 2014/1/23 Mathieu Bridon > 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 > > ***