@@ -130,7 +130,7 @@ may benefit from this
130
130
Repeat these commands on the second machine
131
131
to see where the target instance stores its state.
132
132
133
- Stop both Unit instances, for example:
133
+ Stop both Unit instances, for example, running the following command as root :
134
134
135
135
.. code-block :: console
136
136
@@ -147,7 +147,7 @@ may benefit from this
147
147
Copy the reference state directory to the target state directory
148
148
by arbitrary means;
149
149
make sure to include subdirectories and hidden files.
150
- Finally, restart both Unit instances:
150
+ Finally, restart both Unit instances running the following command as root :
151
151
152
152
.. code-block :: console
153
153
@@ -205,6 +205,10 @@ OpenAPI specification
205
205
Quick start
206
206
***********
207
207
208
+
209
+ .. note ::
210
+ Run the `curl ` commands in this section as root.
211
+
208
212
For a brief intro,
209
213
we configure Unit to serve a static file.
210
214
Suppose you saved this as **/www/data/index.html **:
@@ -264,7 +268,7 @@ To configure Unit,
264
268
**PUT ** this snippet to the **/config ** section via the
265
269
:ref: `control socket <source-startup >`.
266
270
Working with JSON in the command line can be cumbersome;
267
- instead, save and upload it as **snippet.json **:
271
+ instead, save and upload it as **snippet.json **.
268
272
269
273
.. code-block :: console
270
274
@@ -362,7 +366,7 @@ connections are properly closed,
362
366
processes end smoothly.
363
367
364
368
Any type of update can be done with different URIs,
365
- provided you supply the right JSON:
369
+ provided you supply the right JSON. Run the following commands as root :
366
370
367
371
.. code-block :: console
368
372
@@ -400,7 +404,7 @@ For instance, save your application object as **wiki.json**:
400
404
"path" : " /www/wiki/"
401
405
}
402
406
403
- Use it to set up an application called **wiki-prod **:
407
+ Use it to set up an application called **wiki-prod **.
404
408
405
409
.. code-block :: console
406
410
0 commit comments