Enable on-demand rotation.
[nssm.git] / README.txt
index 3769d4c..0affeb3 100644 (file)
@@ -315,7 +315,17 @@ They will be rotated regardless of whether NSSM would otherwise have appended
 or replaced them.\r
 \r
 NSSM can also rotate files which hit the configured size threshold while the\r
 or replaced them.\r
 \r
 NSSM can also rotate files which hit the configured size threshold while the\r
-service is running.  To enable this feature, set AppRotateOnline to a non-zero\r
+service is running.  Additionally, you can trigger an on-demand rotation by\r
+running the command\r
+\r
+    nssm rotate <servicename>\r
+\r
+On-demand rotations will happen after the next line of data is read from\r
+the managed application, regardless of the value of AppRotateBytes. Be aware\r
+that if the application is not particularly verbose the rotation may not\r
+happen for some time.\r
+\r
+To enable online and on-demand rotation, set AppRotateOnline to a non-zero\r
 value.\r
 \r
 Note that online rotation requires NSSM to intercept the application's I/O\r
 value.\r
 \r
 Note that online rotation requires NSSM to intercept the application's I/O\r