service_runner 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -4,26 +4,22 @@ Easily run services for rails apps
4
4
 
5
5
  ## Installation
6
6
 
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'service_runner'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
7
+ Install it systemwide:
16
8
 
17
9
  $ gem install service_runner
18
10
 
19
11
  ## Usage
20
12
 
21
- with Monit
13
+ Not quite working properly in all cases, but in theory:
22
14
 
15
+ with Monit
16
+
23
17
  check process service_name
24
18
  with pidfile /path/to/app/tmp/pids/service_name.pid
25
- start program = "su - user -c 'cd /path/to/app/ && thor services:start service_name'"
26
- stop program = "su - user -c 'cd /path/to/app/ && thor services:stop service_name'"
19
+ start program = "/bin/su - user -c 'cd /path/to/app/ && /path/to/service_runner start service_name'"
20
+ stop program = "/bin/su - user -c 'cd /path/to/app/ && /path/to/service_runner stop service_name'"
21
+
22
+ Services currently supported are `delayed_job` and `sidekiq`
27
23
 
28
24
  ## Contributing
29
25
 
@@ -1,3 +1,3 @@
1
1
  module ServiceRunner
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -10,7 +10,7 @@ module ServiceRunner
10
10
  end
11
11
 
12
12
  Service.define('sidekiq') do |s|
13
- s.start_command = "nohup :bundle sidekiq -e ':env' -P ':pid' >> :log 2>&1 &"
13
+ s.start_command = "nohup :bundle sidekiq -c 10 -e ':env' -P ':pid' >> :log 2>&1 &"
14
14
  s.stop_command = ":bundle sidekiqctl stop ':pid' 30 >> :log 2>&1"
15
15
  end
16
16
  end
@@ -15,5 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.name = "service_runner"
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = ServiceRunner::VERSION
18
+
18
19
  gem.add_dependency 'thor'
20
+ gem.add_development_dependency 'gem-release'
19
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: gem-release
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: Service runner for rails
31
47
  email:
32
48
  - mateo.murphy@gmail.com
@@ -71,3 +87,4 @@ signing_key:
71
87
  specification_version: 3
72
88
  summary: Easily manage services for your rails app
73
89
  test_files: []
90
+ has_rdoc: