File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
1
+
1
2
.. _c2c-logging:
2
3
3
4
=======
@@ -68,6 +69,10 @@ For example:
68
69
The currently active log file is ``mongosync.log``. The other files are older
69
70
logs that ``mongosync`` has rotated.
70
71
72
+ Rotate Log File
73
+ ```````````````
74
+
75
+ .. include:: /includes/fact-log-rotation-usr1-signal
71
76
72
77
Verbosity
73
78
---------
Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ Global Options
116
116
To set the ``--logPath`` option from a configuration file,
117
117
see the :setting:`logPath` setting.
118
118
119
+ .. note::
120
+
121
+ .. include:: /includes/fact-log-rotation-usr1-signal
122
+
119
123
.. option:: --port
120
124
121
125
.. include:: /includes/opts/port.rst
You can’t perform that action at this time.
0 commit comments