WebHost: custom proc title for Generator and MultiHoster (#4310)

* WebHost: custom proctitle for Generator and MultiHoster

* Update setproctitle to 1.3.5
This commit is contained in:
black-sliver
2025-04-06 13:50:24 +02:00
committed by GitHub
parent cad217af19
commit 63fbcc5fc8
3 changed files with 19 additions and 2 deletions

View File

@@ -227,6 +227,9 @@ def set_up_logging(room_id) -> logging.Logger:
def run_server_process(name: str, ponyconfig: dict, static_server_data: dict,
cert_file: typing.Optional[str], cert_key_file: typing.Optional[str],
host: str, rooms_to_run: multiprocessing.Queue, rooms_shutting_down: multiprocessing.Queue):
from setproctitle import setproctitle
setproctitle(name)
Utils.init_logging(name)
try:
import resource