Skip to content

Commit 88c7b2d

Browse files
kanchana-mongodbautarchjeff-allen-mongo
authored
DOCSP-36500 Document SIGUSR1 handling for Mongosync (#297)
* DOCSP-36500 Document SIGUSR1 handling for Mongosync * Update source/includes/fact-log-rotation-usr1-signal.rst Co-authored-by: Dave Rolsky <[email protected]> * Update source/includes/fact-log-rotation-usr1-signal.rst Co-authored-by: Jeff Allen <[email protected]> * DOCSP-36500 updates for JA's copy feedback --------- Co-authored-by: Dave Rolsky <[email protected]> Co-authored-by: Jeff Allen <[email protected]>
1 parent 3074037 commit 88c7b2d

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
If you start ``mongosync`` with the ``--logPath`` option, you can send a
2+
``USR1`` signal to the ``mongosync`` process to rotate its log file:
3+
4+
.. code-block:: javascript
5+
6+
kill -s USR1 $mongosync_pid
7+
8+
``$mongosync_pid`` is the ``mongosync`` process ID.

source/reference/logging.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.. _c2c-logging:
23

34
=======
@@ -68,6 +69,10 @@ For example:
6869
The currently active log file is ``mongosync.log``. The other files are older
6970
logs that ``mongosync`` has rotated.
7071

72+
Rotate Log File
73+
```````````````
74+
75+
.. include:: /includes/fact-log-rotation-usr1-signal
7176

7277
Verbosity
7378
---------

source/reference/mongosync.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ Global Options
116116
To set the ``--logPath`` option from a configuration file,
117117
see the :setting:`logPath` setting.
118118

119+
.. note::
120+
121+
.. include:: /includes/fact-log-rotation-usr1-signal
122+
119123
.. option:: --port
120124

121125
.. include:: /includes/opts/port.rst

0 commit comments

Comments
 (0)