doc formatting fixes
This commit is contained in:
parent
7ccd6a4de0
commit
4134b7a04d
1 changed files with 28 additions and 28 deletions
|
@ -52,7 +52,7 @@ options:
|
||||||
- The application binary to run as a service
|
- The application binary to run as a service
|
||||||
- "Specify this whenever the service may need to be installed (state: present, started, stopped, restarted)"
|
- "Specify this whenever the service may need to be installed (state: present, started, stopped, restarted)"
|
||||||
- "Note that the application name must look like the following, if the directory includes spaces:"
|
- "Note that the application name must look like the following, if the directory includes spaces:"
|
||||||
- "nssm install service \\"c:\\Program Files\\app.exe\\" \\"\\"\\"C:\\Path with spaces\\"\\"\\""
|
- 'nssm install service "c:\\Program Files\\app.exe\\" "C:\\Path with spaces\\"'
|
||||||
- "See commit 0b386fc1984ab74ee59b7bed14b7e8f57212c22b in the nssm.git project for more info (https://git.nssm.cc/?p=nssm.git;a=commit;h=0b386fc1984ab74ee59b7bed14b7e8f57212c22b)"
|
- "See commit 0b386fc1984ab74ee59b7bed14b7e8f57212c22b in the nssm.git project for more info (https://git.nssm.cc/?p=nssm.git;a=commit;h=0b386fc1984ab74ee59b7bed14b7e8f57212c22b)"
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
@ -77,53 +77,53 @@ author:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Install and start the foo service
|
# Install and start the foo service
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windowsk\\foo.exe
|
||||||
|
|
||||||
# Install and start the foo service with a key-value pair argument
|
# Install and start the foo service with a key-value pair argument
|
||||||
# This will yield the following command: C:\windows\foo.exe bar "true"
|
# This will yield the following command: C:\windows\\foo.exe bar "true"
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windows\\foo.exe
|
||||||
app_parameters:
|
app_parameters:
|
||||||
bar: true
|
bar: true
|
||||||
|
|
||||||
# Install and start the foo service with a key-value pair argument, where the argument needs to start with a dash
|
# Install and start the foo service with a key-value pair argument, where the argument needs to start with a dash
|
||||||
# This will yield the following command: C:\windows\foo.exe -bar "true"
|
# This will yield the following command: C:\windows\\foo.exe -bar "true"
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windows\\foo.exe
|
||||||
app_parameters:
|
app_parameters:
|
||||||
"-bar": true
|
"-bar": true
|
||||||
|
|
||||||
# Install and start the foo service with a single parameter
|
# Install and start the foo service with a single parameter
|
||||||
# This will yield the following command: C:\windows\foo.exe bar
|
# This will yield the following command: C:\windows\\foo.exe bar
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windows\\foo.exe
|
||||||
app_parameters:
|
app_parameters:
|
||||||
_: bar
|
_: bar
|
||||||
|
|
||||||
# Install and start the foo service with a mix of single params, and key value pairs
|
# Install and start the foo service with a mix of single params, and key value pairs
|
||||||
# This will yield the following command: C:\windows\foo.exe bar -file output.bat
|
# This will yield the following command: C:\windows\\foo.exe bar -file output.bat
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windows\\foo.exe
|
||||||
app_parameters:
|
app_parameters:
|
||||||
_: bar
|
_: bar
|
||||||
"-file": "output.bat"
|
"-file": "output.bat"
|
||||||
|
|
||||||
# Install and start the foo service, redirecting stdout and stderr to the same file
|
# Install and start the foo service, redirecting stdout and stderr to the same file
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
application: C:\windows\foo.exe
|
application: C:\windows\\foo.exe
|
||||||
stdout_file: C:\windows\foo.log
|
stdout_file: C:\windows\\foo.log
|
||||||
stderr_file: C:\windows\foo.log
|
stderr_file: C:\windows\\foo.log
|
||||||
|
|
||||||
# Remove the foo service
|
# Remove the foo service
|
||||||
win_nssm:
|
- win_nssm:
|
||||||
name: foo
|
name: foo
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue