X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=README.txt;h=d771faad39831779108bda220a79772eeb722800;hb=3c9d8f85d38b4c97b83e2baca63211a4008b5e0d;hp=12a83939ffef5e3b20e0abcf42da875576b54ae2;hpb=3e92dce8716991c7100ea55f0b5e202a05c1b56d;p=nssm.git diff --git a/README.txt b/README.txt index 12a8393..d771faa 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 ----- @@ -729,6 +731,34 @@ separate command line arguments. For example: nssm set DependOnService RpcSs LanmanWorkstation +Alternatively the dependency name can be prefixed with a + or - symbol to +respectively add or remove a dependency. + +The following two lines set dependencies on RpcSs and LanmanWorkstation: + + nssm set DependOnService RpcSs + nssm set DependOnService +LanmanWorkstation + +The follwing syntax removes the dependency on RpcSs: + + nssm set DependOnService -RpcSs + +Service groups should, strictly speaking, be prefixed with the + symbol. +To specify a single dependency on a group, the + symbol can be prefixed +with the : symbol. + +The following lines are equivalent, and each set a dependency ONLY on +NetBIOSGroup: + + nssm set DependOnGroup NetBIOSGroup + nssm set DependOnGroup :NetBIOSGroup + nssm set DependOnGroup :+NetBIOSGroup + +Whereas these lines add to any existing dependencies: + + nssm set DependOnGroup +NetBIOSGroup + nssm set DependOnGroup ++NetBIOSGroup + The Name parameter can only be queried, not set. It returns the service's registry key name. This may be useful to know if you take advantage of @@ -839,6 +869,20 @@ 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. + + Example usage ------------- To install an Unreal Tournament server: