use bin/* for start and stop

This commit is contained in:
Praveen Arimbrathodiyil 2016-02-13 18:00:18 +05:30
parent d8e19a4295
commit e81778ff80
2 changed files with 4 additions and 5 deletions

View file

@ -19,10 +19,9 @@ User=gitlab
WorkingDirectory=/usr/share/gitlab WorkingDirectory=/usr/share/gitlab
EnvironmentFile=/etc/gitlab/gitlab-debian.conf EnvironmentFile=/etc/gitlab/gitlab-debian.conf
SyslogIdentifier=gitlab-sidekiq SyslogIdentifier=gitlab-sidekiq
PIDFile=/usr/share/gitlab/tmp/pids/sidekiq.pid
ExecStart=/usr/bin/bundle exec "sidekiq -d -q archive_repo -q post_receive -q mailers -q system_hook -q incoming_email -q project_web_hook -q gitlab_shell -q common -q default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1" ExecStart=/bin/sh bin/background_jobs start
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/git/gitlab/tmp/pids/sidekiq.pid >> /home/git/gitlab/log/sidekiq.log 2>&1" ExecStop=/bin/sh bin/background_jobs stop
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -18,9 +18,9 @@ User=gitlab
WorkingDirectory=/usr/share/gitlab WorkingDirectory=/usr/share/gitlab
EnvironmentFile=/etc/gitlab/gitlab-debian.conf EnvironmentFile=/etc/gitlab/gitlab-debian.conf
SyslogIdentifier=gitlab-unicorn SyslogIdentifier=gitlab-unicorn
PIDFile=/usr/share/gitlab/tmp/pids/unicorn.pid
ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /usr/share/gitlab/config/unicorn.rb -E production" ExecStart=/bin/sh bin/web start
ExecStop=/bin/sh bin/web stop
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target