How can we run API Gateway (software version) as OS service, do we have any scripts available which can be referred? I could not use the usual method as starting and stopping gateway is not straightforward as most of the time /opt/SecureSpan/Gateway/runtime/bin/gateway.sh stop does not kill all the associated process (Gateway and Controller) and we have to wait for it to stop listening on port internal communication port 2124. If Gateway is started before that, then it keeps on crashing.
I am not sure if there is anything else I need to consider so would really appreciate any suggestion on it.