Ejemplo n.º 1
0
 def init(self):
     self.title = 'Supervisor'
     self.icon = 'play'
     self.category = 'Software'
     self.append(self.ui.inflate('supervisor:main'))
     self.mgr = SupervisorServiceManager.get()
     self.binder = Binder(None, self.find('main'))
     self.find('programs').new_item = lambda c: ProgramData()
     self.config = SupervisorConfig(path='/etc/supervisor/supervisord.conf')
Ejemplo n.º 2
0
 def init(self):
     self.title = 'Supervisor'
     self.icon = 'play'
     self.category = _('Software')
     self.append(self.ui.inflate('supervisor:main'))
     self.mgr = SupervisorServiceManager.get()
     self.binder = Binder(None, self.find('main'))
     self.find('programs').new_item = lambda c: ProgramData()
     self.config = SupervisorConfig(path='/etc/supervisor/supervisord.conf')
Ejemplo n.º 3
0
 def init(self):
     self.title = 'Supervisor'
     self.icon = 'play'
     self.category = _('Software')
     self.append(self.ui.inflate('supervisor:main'))
     self.mgr = SupervisorServiceManager.get()
     self.binder = Binder(None, self.find('main'))
     self.find('programs').new_item = lambda c: ProgramData()
     self.config = SupervisorConfig(path=platform_select(
         default='/etc/supervisor/supervisord.conf',
         centos='/etc/supervisord.conf',
     ))
     self.find('servicebar').name = platform_select(
         centos='supervisord',
         default='supervisor',
     )
     self.find('servicebar').reload()
Ejemplo n.º 4
0
 def init(self):
     self.title = 'Supervisor'
     self.icon = 'play'
     self.category = _('Software')
     self.append(self.ui.inflate('supervisor:main'))
     self.mgr = SupervisorServiceManager.get()
     self.binder = Binder(None, self.find('main'))
     self.find('programs').new_item = lambda c: ProgramData()
     self.config = SupervisorConfig(path=platform_select(
         default='/etc/supervisor/supervisord.conf',
         centos='/etc/supervisord.conf',
     ))
     self.find('servicebar').name = platform_select(
         centos='supervisord',
         default='supervisor',
     )
     self.find('servicebar').reload()