X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=README.txt;h=f8906d3c18f05e81389f53959b7b78e7a2b62d78;hb=7bc41a82f696699aface2103f277e7ebf1808b2f;hp=6f9004e4fee5d92fc705d2ac603230fb3c919bf5;hpb=08eaf3dcc1a68773d5ae340143ad890fdea8648a;p=nssm.git diff --git a/README.txt b/README.txt index 6f9004e..f8906d3 100644 --- a/README.txt +++ b/README.txt @@ -70,6 +70,8 @@ Since version 2.25, NSSM can execute commands in response to service events. Since version 2.25, NSSM can list services it manages. +Since version 2.25, NSSM can dump the configuration of services it manages. + Usage ----- @@ -867,6 +869,28 @@ The following command will print the names of all services managed by NSSM: nssm list +Exporting service configuration +------------------------------- +NSSM can dump commands which would recreate the configuration of a service. +The output can be pasted into a batch script to back up the service or +transfer to another computer. + + nssm dump + +Because the service configuration may contain characters which need to be +quoted or escaped from the command prompt, NSSM tries hard to produce +output which will work correctly when run as a script, by adding quotes +and caret escapes as appropriate. + +To facilitate copying a service, the dump command accepts a second +argument which specifies the name of the service to be used in the output. + + nssm dump + +Lines in the dump will reference the service while showing the +configuration of . + + Example usage ------------- To install an Unreal Tournament server: