MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / _get_systemd_server_name

Method _get_systemd_server_name

mod/project/java/projectMod.py:554–561  ·  view source on GitHub ↗
(project_config: dict)

Source from the content-addressed store, hash-verified

552
553 @staticmethod
554 def _get_systemd_server_name(project_config: dict) -> str:
555 try:
556 project_config["project_name"].encode('ascii')
557 except Exception:
558 name = public.Md5(project_config["project_name"]) # 如果不都是ascii编码的,则用md5的结果作为server名称
559 else:
560 name = project_config["project_name"]
561 return "spring_" + name + project_config.get("server_name_suffix", "")
562
563 # 实际启动项目的函数
564 def _start_spring_boot_project(

Callers 7

_get_pid_by_commandMethod · 0.95
stop_projectMethod · 0.95
restart_projectMethod · 0.95
remove_projectMethod · 0.95
force_stopMethod · 0.95

Calls 2

Md5Method · 0.80
getMethod · 0.45

Tested by

no test coverage detected