We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfe704e + 61669e3 commit 0d877f0Copy full SHA for 0d877f0
ext/windows/service/daemon.rb
@@ -55,7 +55,7 @@ def service_main(*argv)
55
runinterval = 1800
56
end
57
58
- pid = Process.create(:command_line => "\"#{puppet}\" agent --onetime #{args}").process_id
+ pid = Process.create(:command_line => "\"#{puppet}\" agent --onetime #{args}", :creation_flags => Process::CREATE_NEW_CONSOLE).process_id
59
log_debug("Process created: #{pid}")
60
61
log_debug("Service waiting for #{runinterval} seconds")
0 commit comments