Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/h/t/httpdrun-0.2.2/httpdrun/win/__init__.py   httpdrun(Download)
def set_automatic_startup():
    "set_automatic_startup()\n"
    apache2 = services.ServiceControl(get_service_name())
    apache2.set_startup_option(win32service.SERVICE_AUTO_START)
 
def set_manual_startup():
    "set_manual_startup()\n"
    apache2 = services.ServiceControl(get_service_name())
    apache2.set_startup_option(win32service.SERVICE_DEMAND_START)