procman 1.6.0 → 1.6.1
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/lib/proc_man.rb +1 -1
- data/lib/proc_man/process.rb +2 -2
- metadata +1 -1
data/lib/proc_man.rb
CHANGED
data/lib/proc_man/process.rb
CHANGED
@@ -73,7 +73,7 @@ module ProcMan
|
|
73
73
|
|
74
74
|
# A shortcut method for defining a set of RBG processes
|
75
75
|
def rbg(options = {})
|
76
|
-
options[:config_file] ||= "
|
76
|
+
options[:config_file] ||= "Rbgfile"
|
77
77
|
options[:environment] ||= "production"
|
78
78
|
start { system("bundle exec rbg start -c #{options[:config_file]} -E #{options[:environment]}") }
|
79
79
|
stop { system("bundle exec rbg stop -c #{options[:config_file]} -E #{options[:environment]}") }
|
@@ -86,7 +86,7 @@ module ProcMan
|
|
86
86
|
options[:pid_path] ||= "log/unicorn.pid"
|
87
87
|
start { system("bundle exec unicorn -D -c #{options[:config_file]}") }
|
88
88
|
stop { system("kill `cat #{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
89
|
-
restart
|
89
|
+
restart { system("kill -USR2 `cat #{options[:pid_path]}`") if File.exist?(options[:pid_path]) }
|
90
90
|
end
|
91
91
|
|
92
92
|
end
|