Skip to content

Commit

Permalink
Merge pull request #148 from aerii/update-error-message
Browse files Browse the repository at this point in the history
Update error message for daemon on Windows
  • Loading branch information
thommay authored Jul 19, 2016
2 parents 1090da1 + 0c07a30 commit 022397b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/chef-zero
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ if options[:daemon]
Process.daemon(true)
server.start(true)
else
abort 'Process.daemon requires Ruby >= 1.9'
if ENV['OS'] == 'Windows_NT'
abort 'Daemonization is not supported on Windows. Running 'start chef-zero' will fork the process.'
else
abort 'Process.daemon requires Ruby >= 1.9'
end
end
else
server.start(true)
Expand Down

0 comments on commit 022397b

Please sign in to comment.