Fix ProcessMonitor not being compatible with SupervisorMixin

This commit is contained in:
Kristóf Tóth 2018-02-20 16:38:51 +01:00
parent 69c998bfde
commit 3506f5abb4

View File

@ -4,7 +4,7 @@ from tfw.components.mixins import SupervisorMixin
class ProcessManager(SupervisorMixin):
def __init__(self, supervisor_process_name):
self.process = supervisor_process_name
self.process_name = supervisor_process_name
self.commands = {'start': self.start_process,
'stop': self.stop_process,
'restart': self.restart_process}