summaryrefslogtreecommitdiff
path: root/lib/chef/application/windows_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* flip multiline function arguments aroundlcg/rubocop-0.37.2Lamont Granquist2016-02-191-1/+1
| | | | no enforced trailing comma on arguments...
* auto fixing some rubocopsLamont Granquist2016-02-091-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* explicitly adding .bat to service executable called by service in case users ↵Matt Wrock2016-01-191-1/+1
| | | | remove .bat from PATHEXT
* Use double quotes by defaultThom May2016-01-141-13/+13
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-1/+1
| | | | chefstyle -a fixed 1044 occurrances
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-2/+2
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* fix log location resolution in windows serviceMatt Wrock2015-11-091-7/+7
|
* windows service uses log fileMatt Wrock2015-11-051-5/+16
| | | | location from config if none is given on commandline
* add logger to windows service shelloutservice_loggerMatt Wrock2015-10-201-1/+5
|
* Add help for windows service timeoutJay Mundrawala2015-02-261-0/+6
|
* Modify windows_service to use timeoutJay Mundrawala2015-02-261-1/+1
|
* Ensure 'uri' is required where it's used.danielsdeleo2014-11-261-0/+1
| | | | | URI previously was globally available because chef.rb loaded it via a monkey patch for the URI class.
* remove setting proxy environment variablesClaire McQuin2014-06-191-1/+0
|
* rename configure_environment_variables to configure_proxy_environment_variablesClaire McQuin2014-06-031-1/+1
|
* set ENV vars for http proxiesClaire McQuin2014-06-031-0/+1
|
* CHEF-4725: Disable buffering on all log streamsNikhil Benesch2014-01-201-1/+0
| | | | | | Centralize handling of log buffering to ensure it's always disabled. Previously, an unconfigured 'log_location' setting would erroneously fall back to a default STDOUT stream with output buffering enabled.
* Adapt windows_service to be compatible with win32-service 0.8.2.sersut2013-10-281-7/+23
| | | | This fix ensures that service waits for chef client run to end if there is one in flight when the service is shutting down. It also makes service exit cleanly when there is no chef client run in flight.
* Start chef-client in new process when it is run as a service on windowsMukta A2013-10-041-9/+23
|
* CHEF-4344: Clean up instances of 'the the' typo.Bryan McLellan2013-07-261-1/+1
|
* Print debug stacktraces from within a forked workerdanielsdeleo2013-07-051-1/+0
| | | | | | | | | | | | | | | | | | | | | Fixes CHEF-4357: http://tickets.opscode.com/browse/CHEF-4357 Rescue exceptions from within a forker worker and feed them to `Chef::Application.debug_stacktrace()`, then exit non-zero. This fixes an issue where Chef would spew ruby stacktraces with forking enabled (stacktraces should only be printed to console with `-l debug`). Additionally fixes an issue where a generic exception was passed to `debug_stacktrace`, leaving a stacktrace.out file with no useful information. In addition to the above fixes, includes the following improvements: * Update the forked worker's argv0 to clearly indicate it's the worker process, and include ppid and run start time. * When reaping the worker process, include more useful information when the worker exited non-successfully, such as exit code or signal that killed the process. In particular, OOM kill (e.g., when running resource intensive code compile, etc. on small machine) should be a little more obvious.
* [CHEF-3935] Use stripped down lockless loggerdanielsdeleo2013-02-271-2/+3
| | | | | | Ruby's stdlib Logger wraps all IO in mutexes. Ruby 2.0 doesn't allow you to request a lock in a trap handler because that could deadlock. This commit fixes by replacing the Logger with a lock-free variant.
* Enable chef-client windows_service to stop in a timely manner when splay is ↵sersut2013-02-211-5/+4
| | | | configured with a high number.
* Bring over the new logger initialization logic form application.rb.sersut2013-02-201-7/+43
|
* Add a log message to differentiate chef-client runs initiated by the service ↵sersut2013-02-151-0/+1
| | | | from the manual runs.
* CHEF-3690: Restore run_chef_client private method relied upon by ↵sersut2013-02-151-0/+13
| | | | WindowsService class
* Use ruby sync. mechanisms in windows_service. Add better logging.sersut2013-02-151-44/+52
|
* Merge branch '10-stable'Bryan McLellan2012-10-301-9/+2
| | | | | | | | | | | Conflicts: chef-expander/lib/chef/expander/version.rb chef-server-api/lib/chef-server-api/version.rb chef-server-webui/lib/chef-server-webui/version.rb chef-server/lib/chef-server/version.rb chef-solr/lib/chef/solr/version.rb chef/lib/chef/node/attribute.rb lib/chef/node.rb
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+237
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!