summaryrefslogtreecommitdiff
path: root/lib/chef/daemon.rb
Commit message (Collapse)AuthorAgeFilesLines
* This hits the ones that are most frequently required.lcg/require-idempotencyLamont Granquist2019-05-201-1/+1
| | | | | | | | | Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Convert require to require_relativeLamont Granquist2019-05-081-2/+2
| | | | | | | This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-3/+3
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* autofixing whitespace copsLamont Granquist2016-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* 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"
* Use double quotes by defaultThom May2016-01-141-3/+3
| | | | | | | 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.
* Retain the runlock created during daemonization for the lifetime of the process.sersut2013-10-101-1/+2
|
* Use RunLock while daemonizing which is based on flock to prevent race ↵sersut2013-10-091-68/+6
| | | | conditions.
* Normalize whitespace on all filesSeth Vargo2013-09-261-14/+14
|
* Handle pid file appropriately in forked processBrandon Adams2013-04-111-4/+24
| | | | | | | | | | | | | | | | Code and tests to keep a daemonized chef-client's forked process from reaping the parent pid file. Without this fix a forked process will reap its parent's pid file, breaking init script functionality. A start call to the init script will then launch a new process, since the init script is ignorant of the already running process. A process is considered a fork in case the chef-client daemon is running and the process pid is not equal to the pid defined in the pidfile, or if the chef-client daemon is not running and the parent pid of the process is 1, implying that the process was a fork at some point and has become orphaned.
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+172
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!