HomePhorge

(#9329) Disable agent daemonizing on Windows
ea887456e70aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9329) Disable agent daemonizing on Windows

Running puppet agent on Windows with the default set of options fails
because the win32-process gem doesn't really support fork (it
re-executes the parent program, but doesn't preserve the parent
context), and then it fails to setsid as this call is not implemented
by the ruby runtime.

But the bigger issue is that Windows services are the preferred way to
run daemon processes. For this release, we will not be providing the
code to run puppet agent as a service, though we have verified that
puppet will run as a service using a third-party service wrapper,
nssm.

This commit changes the daemonize option to default to false on
Windows, so that the typical 'puppet agent' command does the right
thing. And if the daemonize option is set to true on Windows, it will
report an error.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb4ea0862b130: Merge pull request #90 from nicklewis/fix-pidlock-removal-failure
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUea887456e70a: (#9329) Disable agent daemonizing on Windows (authored by Josh Cooper <josh@puppetlabs.com>).Sep 10 2011, 1:12 AM