-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jtimberman
committed
Jan 28, 2013
1 parent
cd1f96f
commit 3a2bd2b
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
This is a "service" directory for sidekiq. You should probably modify | ||
the relevant paths in the run script, and the log/run script, if | ||
necessary. It assumes a "sidekiq" user is created that will run the | ||
sidekiq process. To supervise under runit, link this directory to the | ||
runsvdir for your system (e.g., `/etc/service` on Debian/Ubuntu). | ||
|
||
If you're using Chef, use the | ||
[example cookbook](https://github.com/mperham/sidekiq/tree/master/examples/chef/cookbooks/sidekiq) | ||
(modified for your environment), and Opscode's | ||
[runit cookbook](http://ckbk.it/runit) to set up the service. | ||
|
||
Author: Joshua Timberman <joshua@opscode.com> | ||
|
||
Runit is written by Gerrit Pape. | ||
|
||
* http://smarden.org/runit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec svlogd -tt /var/log/sidekiq |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
cd /path/to/sidekiq | ||
exec 2>&1 | ||
exec chpst -usidekiq bundle exec sidekiq -e production -P /var/run/sidekiq/sidekiq.pid |