A Windows Service that starts the GPII process when the user logs on, restarts it when it stops unexpectedly, and provides the ability to run high-privileged tasks.
node index.js --mode=install
--programArgs=ARGS Arguments for the service application (default: --node=service).
--nodeArgs=ARGS Arguments for node.
node index.js --mode=uninstall
net start gpii-service
node index.js --mode=service
The work to make it run as a Windows Service is provided by stegru/node-os-service#GPII-2338. This is a fork of node-os-service to make it detect user logins.
Initial research: stegru/service-poc