mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 13:59:17 +00:00
pref: 添加命令启动失败 debug
This commit is contained in:
@@ -44,7 +44,9 @@ class BaseService(object):
|
||||
if self.is_running:
|
||||
msg = f'{self.name} is running: {self.pid}.'
|
||||
else:
|
||||
msg = f'{self.name} is stopped.'
|
||||
msg = '\033[31m{} is stopped.\033[0m\nYou can manual start it to find the error: \n' \
|
||||
' $ cd {}\n' \
|
||||
' $ {}'.format(self.name, self.cwd, ' '.join(self.cmd))
|
||||
print(msg)
|
||||
|
||||
# -- log --
|
||||
|
@@ -76,7 +76,6 @@ class ServicesUtil(object):
|
||||
def clean_up(self):
|
||||
if not self.EXIT_EVENT.is_set():
|
||||
self.EXIT_EVENT.set()
|
||||
|
||||
self.stop()
|
||||
|
||||
def show_status(self):
|
||||
|
Reference in New Issue
Block a user