summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoraerii <aerii@live.com>2015-07-09 23:12:34 -0700
committeraerii <aerii@live.com>2015-07-09 23:12:34 -0700
commit0c07a30ecb7d9e9921576d441f2fcaa873b24cd2 (patch)
treeb9f7eedb23d1c4caff2ef690a1c576eb63d5c102 /bin
parent28fe2928469885b0138de4d4270c6eccac8ab482 (diff)
downloadchef-zero-0c07a30ecb7d9e9921576d441f2fcaa873b24cd2.tar.gz
Update error message for daemon on Windows
When running chef-zero with the daemon option on Windows, the error message incorrectly says 'Process.daemon requires Ruby >= 1.9', even when Windows has Ruby 2.0+.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-zero6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/chef-zero b/bin/chef-zero
index 54739bc..3119694 100755
--- a/bin/chef-zero
+++ b/bin/chef-zero
@@ -93,7 +93,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)