omf_rc_shm 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/cronjob_app_wrapper +2 -2
- data/lib/omf_rc/resource_proxy/scheduled_application.rb +1 -1
- data/lib/omf_rc_shm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGJmYzJiN2IzNjQ4YzFjMzdjNDNiYzM3YWE2NWI0YmFiMmIxY2Q1NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTM3ZTI1ZTZlMjIyODg0ZmE2MTg0ZGRjZjExZjBjMGU3ZDEzNTQwYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTYwZTJkYzRmYTI0NmQ1MzEyYjA4YTMyMGVmZjA2YzNmMWU2OTJjMmI1Mjdl
|
10
|
+
ODA3YjBmMTQwYzAyZWE5ZmFhYzI2YmNmMzgzZjIwM2E5ZGFjNGMxMzdlYjJi
|
11
|
+
MjA2ZGIzYjA2ZWUzOGM0ODg1YjI0NTRkYjM5NTJiNThiMWFmOTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MThkNzZmMGY5MDIwY2M1NjQwNzAxY2RmMDdiMzViYmIzYzZjZGVmNDg4ODRl
|
14
|
+
MDY3OGRkYzQ3ZDkxYWU0NjFmMzgxMTI1OWY0ZWE3YmJhNDJiMTIxNWY1NjM0
|
15
|
+
YzA5YzQ4MmY5NDgwZTc1NDk0ZmFmOTE2YmY5MjRmYmQ2MzU4Nzk=
|
data/bin/cronjob_app_wrapper
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
3
|
+
stdout_f, stderr_f, pid_f, timeout, kill_sig, *cmd = *ARGV
|
4
4
|
|
5
|
-
pid = Process.spawn(cmd, out: [stdout_f, "a"], err: [stderr_f, "a"])
|
5
|
+
pid = Process.spawn(cmd.join(" "), out: [stdout_f, "a"], err: [stderr_f, "a"])
|
6
6
|
|
7
7
|
`echo #{pid} >> #{pid_f}`
|
8
8
|
|
@@ -327,7 +327,7 @@ module OmfRc::ResourceProxy::ScheduledApplication
|
|
327
327
|
|
328
328
|
app_wrapper_path = File.expand_path("#{File.dirname(__FILE__)}/../../../bin/cronjob_app_wrapper")
|
329
329
|
|
330
|
-
cmd = "#{app_wrapper_path} #{
|
330
|
+
cmd = "#{app_wrapper_path} #{stdout_file} #{stderr_file} #{pid_file} #{res.property.timeout} #{res.property.timeout_kill_signal} #{res.build_command_line}"
|
331
331
|
|
332
332
|
info "Adding cron job for '#{res.property.app_id}' with schedule '#{res.property.schedule}' and command '#{cmd}'"
|
333
333
|
|
data/lib/omf_rc_shm/version.rb
CHANGED