summaryrefslogtreecommitdiff
path: root/bin/chef-zero
diff options
context:
space:
mode:
Diffstat (limited to 'bin/chef-zero')
-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)