diff options
author | Thom May <thom@may.lt> | 2016-07-19 18:31:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 18:31:48 +0100 |
commit | 022397b795344045535c6ee34a38c0465d1c862e (patch) | |
tree | 9f268ac5ef7953ecda94178c2c312bdb3161ba75 | |
parent | 1090da1b34b6bbff51bbac88a575bbbc753f3072 (diff) | |
parent | 0c07a30ecb7d9e9921576d441f2fcaa873b24cd2 (diff) | |
download | chef-zero-022397b795344045535c6ee34a38c0465d1c862e.tar.gz |
Merge pull request #148 from aerii/update-error-message
Update error message for daemon on Windows
-rwxr-xr-x | bin/chef-zero | 6 |
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) |