Created
July 3, 2012 10:15
-
-
Save argon/3038898 to your computer and use it in GitHub Desktop.
GitLab systemd files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Gitlab Resque | |
[Service] | |
Type=forking | |
SyslogIdentifier=gl-resque | |
User=gitlab | |
PIDFile=/home/gitlab/gitlab/tmp/pids/resque_worker.pid | |
WorkingDirectory=/home/gitlab/gitlab | |
ExecStart=/home/gitlab/gitlab/resque.sh | |
ExecReload=/bin/kill -HUP $MAINPID | |
ExecStop=/bin/kill -QUIT $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Gitlab Unicorn Rails server | |
[Service] | |
Type=forking | |
SyslogIdentifier=gl-unicorn | |
User=gitlab | |
PIDFile=/home/gitlab/gitlab/tmp/pids/unicorn.pid | |
WorkingDirectory=/home/gitlab/gitlab | |
ExecStart=/home/gitlab/gitlab/unicorn.sh | |
ExecReload=/bin/kill -HUP $MAINPID | |
ExecStop=/bin/kill -QUIT $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source $(/usr/local/rvm/bin/rvm 1.9.3 do rvm env --path) | |
mkdir -p tmp/pids | |
bundle exec rake environment resque:work QUEUE=post_receive,mailer RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid BACKGROUND=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source $(/usr/local/rvm/bin/rvm 1.9.3 do rvm env --path) | |
DAEMON_OPTS="-c /home/gitlab/gitlab/config/unicorn.rb -E production -D" | |
bundle exec unicorn_rails $DAEMON_OPTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍