puppet_agent_mgr 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puppet_agent_mgr/v3/unix.rb +3 -3
- data/lib/puppet_agent_mgr/version.rb +1 -1
- metadata +3 -3
@@ -3,8 +3,8 @@ module PuppetAgentMgr::V3
|
|
3
3
|
extend Unix
|
4
4
|
# is the agent daemon currently in the unix process list?
|
5
5
|
def daemon_present?
|
6
|
-
if File.exist?(Puppet[:
|
7
|
-
return has_process_for_pid?(File.read(Puppet[:
|
6
|
+
if File.exist?(Puppet[:agent_catalog_run_lockfile])
|
7
|
+
return has_process_for_pid?(File.read(Puppet[:agent_catalog_run_lockfile]))
|
8
8
|
end
|
9
9
|
|
10
10
|
return false
|
@@ -24,7 +24,7 @@ module PuppetAgentMgr::V3
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def signal_running_daemon
|
27
|
-
pid = File.read(Puppet[:
|
27
|
+
pid = File.read(Puppet[:agent_catalog_run_lockfile])
|
28
28
|
|
29
29
|
if has_process_for_pid?(pid)
|
30
30
|
begin
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet_agent_mgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- R.I.Pienaar
|