Windows (NSSM) execution

Running the Gateway service on a Windows machine requires some middleware to create a service-compatible wrapper around the Python code that's going to be executed. One of the more popular and stable middleware options is the Non-Sucking Service Manager (NSSM). NSSM provides a GUI for creating, installing, and managing services that are written in a variety of languages—in general, if a program can be run from a command line, NSSM can almost certainly get it running as a Windows service.

NSSM may need to be run with administrative privileges, but in any event, is launched from the command line—C:\path\to\nssm.exe install launches the GUI, and all of the settings needed are present under one of the tabs. The application ...

Get Hands-On Software Engineering with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.