X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=README.txt;h=b05fd784da3052ac532c1fbab978cc4671eef2ea;hb=2994e17c24d8a3d32937a92733ba1ee0f26dc33d;hp=830ca67f5ce8d784e6748eddf63205ce746edda0;hpb=7fdd3f6c44421a7c4872ecea56e550c19489c949;p=nssm.git diff --git a/README.txt b/README.txt index 830ca67..b05fd78 100644 --- a/README.txt +++ b/README.txt @@ -314,6 +314,25 @@ Rotation is independent of the CreateFile() parameters used to open the files. They will be rotated regardless of whether NSSM would otherwise have appended or replaced them. +NSSM can also rotate files which hit the configured size threshold while the +service is running. Additionally, you can trigger an on-demand rotation by +running the command + + nssm rotate + +On-demand rotations will happen after the next line of data is read from +the managed application, regardless of the value of AppRotateBytes. Be aware +that if the application is not particularly verbose the rotation may not +happen for some time. + +To enable online and on-demand rotation, set AppRotateOnline to a non-zero +value. + +Note that online rotation requires NSSM to intercept the application's I/O +and create the output files on its behalf. This is more complex and +error-prone than simply redirecting the I/O streams before launching the +application. Therefore online rotation is not enabled by default. + Environment variables --------------------- @@ -495,6 +514,8 @@ NSSM offers rudimentary service control features. nssm start + nssm restart + nssm stop nssm status