monitoring-client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/monitoringd +2 -1
- data/lib/monitoring/client/routine.rb +1 -0
- data/lib/monitoring/client/version.rb +1 -1
- metadata +4 -4
data/bin/monitoringd
CHANGED
@@ -18,7 +18,7 @@ module Monitoring
|
|
18
18
|
|
19
19
|
def initialize()
|
20
20
|
@udp_port = 57475
|
21
|
-
@daemon_mode =
|
21
|
+
@daemon_mode = true
|
22
22
|
@monitoring_endpoint = "http://metrics.trim.za.net"
|
23
23
|
@pid_file_fn = "/var/run/monitoringd.pid"
|
24
24
|
@sleep_period = 60
|
@@ -123,6 +123,7 @@ module Monitoring
|
|
123
123
|
|
124
124
|
Process.setsid
|
125
125
|
pid_file_fd.puts(Process.pid)
|
126
|
+
pid_file_fd.flush()
|
126
127
|
|
127
128
|
Dir.chdir("/")
|
128
129
|
File.umask(0000)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monitoring-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marc Bowes
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-13 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|