comparison xml/en/docs/faq/daemon_master_process_off.xml @ 196:aafe530e7d6f

- Added faq/ and more q&a as previously agreed
author Andrey Alexeev <andrew@nginx.com>
date Wed, 23 Nov 2011 15:32:04 +0000
parents
children ec4626d04879
comparison
equal deleted inserted replaced
195:e83a59eee5cf 196:aafe530e7d6f
1 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
2
3 <article name="Can I run nginx with daemon off or
4 master_process off settings
5 in a production environment?"
6 link="/en/docs/faq/daemon_master_process_off.html"
7 lang="en">
8
9 <section>
10
11 <para>
12 <initial>Q:</initial>
13 Can I run nginx with daemon off or master_process off settings
14 in a production environment?
15 </para>
16
17 <para>
18 &nbsp;
19 </para>
20
21 <para>
22 <initial>A:</initial>
23 First of all, both "daemon on|off" and "master_process on|off" directives were
24 intended to be used for nginx code develpment.
25 </para>
26
27 <para>
28 While many people use daemon off in production it wasn't really meant for
29 that. Since version 1.0.9 it is now quite safe to run nginx in production
30 with daemon off, though. Bear in mind that non-stop upgrade is not an
31 option with daemon off.
32 </para>
33
34 <para>
35 In a development environment, using master_process off, nginx can run in
36 the foreground without the master process and can be terminated simply
37 with ^C (SIGINT). This is somewhat similar to running Apache with
38 an 'X' commandline option. However you should never run nginx in production
39 with master_process off.
40 </para>
41
42 </section>
43
44 </article>