Skip to content

Commit

Permalink
(#10578) Improve the text around signalling a daemonized puppet agent.
Browse files Browse the repository at this point in the history
Focus on the outcome from the user point of view, not the mechanics
of how the operation is performed.
  • Loading branch information
Nigel Kersten committed Nov 7, 2011
1 parent cde6c3b commit b116dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/puppetd/agent/puppetd.rb
Expand Up @@ -119,7 +119,7 @@ def runonce
# theoretically signal arbitrary processes with this...
begin
::Process.kill("USR1", Integer(pid))
reply[:output] = "Sent SIGUSR1 to the puppet agent daemon (process #{Integer(pid)})"
reply[:output] = "Signalled daemonized puppet agent to run (process #{Integer(pid)})"
rescue Exception => e
reply.fail "Failed to signal the puppet agent daemon (process #{pid}): #{e}"
end
Expand Down
2 changes: 1 addition & 1 deletion agent/puppetd/spec/puppetd_agent_spec.rb
Expand Up @@ -146,7 +146,7 @@
::Process.expects(:kill).with("USR1", 99999999).once
result = @agent.call(:runonce)
result[:statusmsg].should == "OK"
result[:data][:output].should == "Sent SIGUSR1 to the puppet agent daemon (process 99999999)"
result[:data][:output].should == "Signalled daemonized puppet agent to run (process 99999999)"
result.should be_successful
end

Expand Down

0 comments on commit b116dc0

Please sign in to comment.