X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=README.txt;h=3769d4cdd55eb816192975a42c3ac676e92d5bd9;hb=143238dfe314c16bc90a6807ab0f00220efd34a2;hp=685807af22ce5afbaef248f4dcbcc1ed41f84b83;hpb=53371f115d94fbbc7e5cb60853b9e4a5d356d4b0;p=nssm.git diff --git a/README.txt b/README.txt index 685807a..3769d4c 100644 --- a/README.txt +++ b/README.txt @@ -56,6 +56,9 @@ AppEnvironment. Since version 2.22, NSSM can set the managed application's process priority and CPU affinity. +Since version 2.22, NSSM can apply an unconditional delay before restarting +an application which has exited. + Since version 2.22, NSSM can rotate existing output files when redirecting I/O. Since version 2.22, NSSM can set service display name, description, startup @@ -129,6 +132,17 @@ You can change the threshold for the service by setting the number of milliseconds as a REG_DWORD value in the registry at HKLM\SYSTEM\CurrentControlSet\Services\\Parameters\AppThrottle. +Alternatively, NSSM can pause for a configurable amount of time before +attempting to restart the application even if it successfully ran for the +amount of time specified by AppThrottle. NSSM will consult the REG_DWORD value +at HKLM\SYSTEM\CurrentControlSet\Services\\Parameters\AppRestartDelay +for the number of milliseconds to wait before attempting a restart. If +AppRestartDelay is set and the application is determined to be subject to +throttling, NSSM will pause the service for whichever is longer of the +configured restart delay and the calculated throttle period. + +If AppRestartDelay is missing or invalid, only throttling will be applied. + NSSM will look in the registry under HKLM\SYSTEM\CurrentControlSet\Services\\Parameters\AppExit for string (REG_EXPAND_SZ) values corresponding to the exit code of the application. @@ -300,6 +314,15 @@ 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. To enable this feature, 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 --------------------- @@ -588,6 +611,7 @@ Thanks to Doug Watson for suggesting file rotation. Thanks to Арслан Сайдуганов for suggesting setting process priority. Thanks to Robert Middleton for suggestion and draft implementation of process affinity support. +Thanks to Andrew RedzMax for suggesting an unconditional restart delay. Licence -------