summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-07-19 18:31:48 +0100
committerGitHub <noreply@github.com>2016-07-19 18:31:48 +0100
commit022397b795344045535c6ee34a38c0465d1c862e (patch)
tree9f268ac5ef7953ecda94178c2c312bdb3161ba75
parent1090da1b34b6bbff51bbac88a575bbbc753f3072 (diff)
parent0c07a30ecb7d9e9921576d441f2fcaa873b24cd2 (diff)
downloadchef-zero-022397b795344045535c6ee34a38c0465d1c862e.tar.gz
Merge pull request #148 from aerii/update-error-message
Update error message for daemon on Windows
-rwxr-xr-xbin/chef-zero6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/chef-zero b/bin/chef-zero
index 03b6d01..33fc0e1 100755
--- a/bin/chef-zero
+++ b/bin/chef-zero
@@ -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)