Skip to content

Commit add7042

Browse files
author
Sam Kleinman
committed
minor: edits and tweaks to unexpected shut down tweak.
1 parent 66bf198 commit add7042

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

aspiration/tutorial/recover-data-following-unexpected-shutdown.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Recover MongoDB Data following Unexpected Shutdown
44

55
.. default-domain:: mongodb
66

7-
If MongoDB does not shutdown cleanly [#clean-shutdown]_ the on disk
7+
If MongoDB does not shutdown cleanly [#clean-shutdown]_ the on-disk
88
representation of the data files will likely reflect an inconsistent
99
state which leads to data corruption.
1010

@@ -25,7 +25,7 @@ recover data that may be in an inconsistent state.
2525
.. [#clean-shutdown] To ensure a clean shut down, use the
2626
:option:`mongod --shutdown` option, your control script,
2727
"Control-C" (when running :program:`mongod` in interactive mode,)
28-
or ``kill mongod`` or ``kill -2 mongod``.
28+
or ``kill $(pidof mongod)`` or ``kill -2 $(pidof mongod)``.
2929

3030
Process
3131
-------
@@ -37,10 +37,11 @@ When you are aware of a :program:`mongod` instance running without
3737
journaling that stops unexpectedly you should always run the repair
3838
operation before starting MongoDB again.
3939

40-
If the ``mongod.lock`` file has data in the data directory specified
41-
by :setting:`dbpath`, ``/data/db`` by default, then :program:`mongod`
42-
will refuse to start, and you will find a message that contains the
43-
following line in your MongoDB log our output:
40+
If the ``mongod.lock`` file in the data directory specified by
41+
:setting:`dbpath`, ``/data/db`` by default, is *not* a zero-byte file,
42+
then :program:`mongod` will refuse to start, and you will find a
43+
message that contains the following line in your MongoDB log our
44+
output:
4445

4546
.. code-block:: none
4647

0 commit comments

Comments
 (0)