Skip to content

Grott as a service (Windows)

Johan Meijer edited this page Aug 26, 2020 · 3 revisions

How to setup Grott as service within Windows

To enable continous Grott monitoring Grott can be runned as a standard Windows service (deamon).

I used NSSM (the Non-Sucking Service Manager) to install Grott as a service: https://nssm.cc/usage

Build used: prelease build 2.2.4-101
Runs under Windows 10 build 2004

  1. Download NSSM
  2. Unpack in the wanted directory (I used c:/nssm
  3. Open cmd (start cmd) windows and go the the NSSM directory: \nssm\win64
  4. create grott service: nssm install Grott (change with: nssm edit grott)

path: your python directory + exe

startup directory: the grott director

arguments: grott.py program with parameter

For windows service I added an outpput file to see Grott debug messages

  1. start/stop grott service: nssm start / stop Grott (be aware some nssm actions need s de cmd screen to be opened as admin)
  2. the Windows services app (start msc or service) can also be used to stop / start / disable the grott service
  3. remove grott service (if not wanted anymore) nssm remove Grott

Examples:

Define Windows Service Control Windows Service