| Server IP : 199.250.200.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/cwd/proc/3/task/3/cwd/opt/imh-python/lib/python3.9/site-packages/twisted/scripts/ |
Upload File : |
# -*- test-case-name: twisted.test.test_twistd -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
The Twisted Daemon: platform-independent interface.
@author: Christopher Armstrong
"""
from twisted.application import app
from twisted.python.runtime import platformType
if platformType == "win32":
from twisted.scripts._twistw import (
ServerOptions,
WindowsApplicationRunner as _SomeApplicationRunner,
)
else:
from twisted.scripts._twistd_unix import ( # type: ignore[misc]
ServerOptions,
UnixApplicationRunner as _SomeApplicationRunner,
)
def runApp(config):
runner = _SomeApplicationRunner(config)
runner.run()
if runner._exitSignal is not None:
app._exitWithSignal(runner._exitSignal)
def run():
app.run(runApp, ServerOptions)
__all__ = ["run", "runApp"]