Hello folks! :) I am trying to run web2py as Windows service, but no positive results. Following the recipe on the online book, I edited the file "options.py". The file looks like that: #!/usr/bin/python # -*- coding: utf-8 -*-
import socket import os ip = 127.0.0.1 port = 8000 interfaces = [('127.0.0.1', 8000)] password = '<recycle>' pid_filename = 'httpserver.pid' log_filename = 'httpserver.log' profiler_filename = None ssl_certificate = None ssl_private_key = None #numthreads = 50 # ## deprecated; remove minthreads = None maxthreads = None server_name = socket.gethostname() request_queue_size = 5 timeout = 30 shutdown_timeout = 5 folder = os.getcwd() extcron = None nocron = None When I install the service, everything seems to be OK: C:\Users\David\Desktop\myapp\web2py>web2py.exe -W install web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.2.1 (2012-10-21 16:57:04) stable Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL( pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), IMAP(imaplib) Installing service web2py Changing service configuration Service updated But when I launch the service, something goes wrong: C:\Users\David\Desktop\myapp\web2py>web2py.exe -W start web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2012 Version 2.2.1 (2012-10-21 16:57:04) stable Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL( pg8000), MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), IMAP(imaplib) Starting service web2py Error starting service: The service did not respond to the start or control requ est in a timely fashion. Can anybody help me in that? :) Cheers, David --