...
- Download WinSW and copy
winsw.exe
under C:\UDMG\UDMG Gateway
with the following name: waarp-gatewayd-service
.exe
- Create a new service definition file:
waarp-gatewayd-service
.yml
Here is the minimal version of the file with the required configuration parameters, make sure that the paths are correct
Panel |
---|
id: UDMG Server
name: UDMG Waarp Gateway Server
description: UDMG Waarp Gateway Server
executable: C:\UDMG\UDMG GatewayServer\waarpudmg-gatewaydserver.exe
startArguments: server -c "C:\UDMG\UDMG Gateway Server \server.ini"
workingdirectory: C:\UDMG\UDMG Gateway
priority: Normal UDMG Server
priority: Normal
|
Here is another version with the full set of parameters and their description, it can be used as a template for tweaking the service settings.
Panel |
---|
## UDMG server service configuration
##
## references:
## https://github.com/winsw/winsw/blob/v2.11.0/doc/yamlConfigFile.md
## https://github.com/winsw/winsw/blob/v2.11.0/examples/sample-allOption.yml
id: UDMG Server
name: UDMG Server
description: UDMG Server
## SECTION: Installation
## These options are being used during the installation only.
## Their modification will not take affect without the service re-installation.
##
## service account can be given during the installation with /p parameter
## waarp-gatewayd-service-user.exe install /p
## and then providing username
onFailure:
-
action: restart
delay: 10 sec
-
action: restart
delay: 60 sec
-
action: none
#resetFailure: 01:00:00
## SECTION: Executable management
executable: C:\UDMG\UDMG Server\udmg-server.exe
startArguments: >
server
-c "C:\UDMG\UDMG Server\server.ini"
workingdirectory: C:\UDMG\UDMG Server
priority: Normal
#stopTimeout: 15 sec
#stopParentProcessFirst: true
## SECTION: Service management
#startMode: Automatic
#delayedAutoStart: true
## SECTION:Logging
## Note: disabled due to WinSW bug https://github.com/winsw/winsw/issues/1016
#log:
# mode: roll-by-size-time
# sizeThreshold: 10240
# keepFiles: 8
# pattern: yyyyMMdd
# autoRollAtTime: 00:00:00
## SECTION: Environment setup
## SECTION: Extensions
## This configuration section allows specifying custom extensions.
## More info is available here: https://github.com/kohsuke/winsw/blob/v2.11.0/doc/extensions/extensions.md
|
Note |
---|
|
The rollover of the service log file is disabled as it causes a bug of the WinSW application, see https://github.com/winsw/winsw/issues/1016 . |
- Start the service and check the status:
...
...