process_controller 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/control.gemspec +1 -0
- data/lib/control/version.rb +1 -1
- data/lib/control_helper.rb +4 -1
- data/lib/process_controller.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 358fe9c6f9b18cb316ab8781a307be61e3fd3fef
|
4
|
+
data.tar.gz: 7b17a2b8a39f63cd08907aaa935eb076dd124bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c21710e0f6b249dfed5644d6069df7d48381d509c5cd7d2360c1ca3b08fa0477c719c1470c02f7d7d29a56563515c602cc84b4311d0b2e4bcfc96c31dace146d
|
7
|
+
data.tar.gz: 88c8e50537520b7ee670b827fe48180ea93be0dc2a9ea726b54f0523892b0f8cff26e4990b1eeb87d94b4b2214e62da5b4bc67ce8e2e5f930788c20ac7ad4527
|
data/control.gemspec
CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
# s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
|
+
#TODO maybe replace this. it might be too much just for with_indifferent_access :-)
|
22
23
|
s.add_runtime_dependency 'activesupport', '~> 4.2'
|
23
24
|
|
24
25
|
end
|
data/lib/control/version.rb
CHANGED
data/lib/control_helper.rb
CHANGED
@@ -66,7 +66,10 @@ module ControlHelper
|
|
66
66
|
p "trying to start a new using start_command: #{start_command}"
|
67
67
|
|
68
68
|
pid = spawn(start_command)
|
69
|
-
|
69
|
+
if pid
|
70
|
+
Process.detach(pid)
|
71
|
+
p "detached pid #{pid} from the main program"
|
72
|
+
end
|
70
73
|
sleep 5 # give the new app enough time to crash
|
71
74
|
find_app_pid(options)
|
72
75
|
end
|
data/lib/process_controller.rb
CHANGED
@@ -35,6 +35,8 @@ class Control_P
|
|
35
35
|
else
|
36
36
|
raise "action #{action} not implemented"
|
37
37
|
end
|
38
|
+
# drom some reason the remote ssh is not exiting, making sure it exit here
|
39
|
+
exit(0)
|
38
40
|
end
|
39
41
|
|
40
42
|
def self.helper
|
@@ -69,4 +71,5 @@ class Control_P
|
|
69
71
|
helper.kill_the_process!(options)
|
70
72
|
end
|
71
73
|
|
72
|
-
end
|
74
|
+
end
|
75
|
+
|