summaryrefslogtreecommitdiff
path: root/spec/unit/daemon_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* autofixing Style/IndentAssignment copLamont Granquist2016-08-161-1/+1
|
* 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-4/+4
| | | | | | | 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.
* Update to RSpec 3.Claire McQuin2014-10-291-31/+31
|
* ripping out rspec_reset entirelyLamont Granquist2014-01-291-1/+0
|
* s/mock\(/double(/gLamont Granquist2014-01-291-2/+2
|
* s/stub!/stub/gLamont Granquist2014-01-291-19/+19
| | | | fix deprecation warnings
* fix rspec_reset problemLamont Granquist2014-01-291-1/+1
| | | | | | | follows the pattern in the rspec-mocks spec tests of defining a helper module: https://github.com/rspec/rspec-mocks/blob/cee433c89125a3984df33c87eb61985613adce9b/spec/spec_helper.rb
* Use RunLock while daemonizing which is based on flock to prevent race ↵sersut2013-10-091-118/+0
| | | | conditions.
* Don't bother cleaning up Chef::Config after tests or initializing things to ↵John Keiser2013-09-161-14/+0
| | | | default values before
* aix's error message for EPERM is like solaris'sLamont Granquist2013-06-191-7/+7
|
* Handle pid file appropriately in forked processBrandon Adams2013-04-111-0/+26
| | | | | | | | | | | | | | | | 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/+281
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!