Thank you Niphlod for the slice. :)
But sadly it's not working for me. The problem is somehow my application and not nssm. If I define a scheduler in the welcome app it works.
In my app even a blank scheduler function fails.
In scheduler.py I found a check on WEB2PY_PATH, so I set it but without effect
I tried to remove all dependencies from custom modules without effect.
I think it fails in gluon.shell. What could cause this issue? I am not trying to do anny fancy stuff. ;)
if import_models:
try:
run_models_in(environment)
except RestrictedError, e:
sys.stderr.write(e.traceback + '\n')
sys.exit(1)