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). ***************** gitlab-sidekiq.service ***************** [[Unit] Description=GitLab Sidekiq Worker [Service] Type=forking User=git WorkingDirectory=/var/www/gitlab Environment=RAILS_ENV=production SyslogIdentifier=gitlab-sidekiq PIDFile=/var/run/gitlab-sidekiq.pid ExecStart=/var/www/gitlab/script/sidekiq ExecStop=/usr/local/bin/bundle exec "sidekiqctl stop /var/run/gitlab-sidekiq.pid >> /var/www/gitlab/log/sidekiq.log 2>&1" [Install] WantedBy=gitlab.target ***************** gitlab-unicorn.service ***************** [Unit] Description=GitLab Unicorn Server [Service] User=git WorkingDirectory=/var/www/gitlab Environment=RAILS_ENV=production SyslogIdentifier=gitlab-unicorn PIDFile=/var/run/gitlab-unicorn.pid ExecStart=/var/www/gitlab/script/unicorn ExecStop=/usr/bin/kill -QUIT $MAINPID ExecReload=/usr/bin/kill -USR2 $MAINPID [Install] WantedBy=gitlab.target ***************** gitlab.target ***************** [Unit] Description=GitLab - Self Hosted Git Management Requires=redis.service postgresql.service After=redis.service postgressql.service syslog.target network.target [Install] WantedBy=multi-user.target ************************************************ But systemctl start gitlab-sidekiq.service crash. systemctl status gitlab-sidekiq.service returns ********************************************************************* Loaded: loaded (/usr/lib/systemd/system/gitlab-sidekiq.service; disabled) Active: failed (Result: exit-code) since jeu. 2014-01-23 10:48:43 CET; 6s ago Process: 6987 ExecStart=/var/www/gitlab/script/sidekiq (code=exited, status=1/FAILURE) janv. 23 10:48:42 localhost.localdomain systemd[1]: Starting GitLab Sidekiq Worker... janv. 23 10:48:43 localhost.localdomain systemd[1]: gitlab-sidekiq.service: control process exited, code=exited status=1 janv. 23 10:48:43 localhost.localdomain systemd[1]: Failed to start GitLab Sidekiq Worker. janv. 23 10:48:43 localhost.localdomain systemd[1]: Unit gitlab-sidekiq.service entered failed state. ********************************************************************* 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 post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P /var/run/gitlab-sidekiq.pid -d -L /var/www/gitlab/log/sidekiq.log >> /var/www/gitlab/log/sidekiq.log 2>&1 ******************************************** When I run this script in a tty, I have a 0 exit code, I presume it works (the process behind is started). What is wrong with my conf ? Regards,
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel