Esempio 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')
Esempio 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')
Esempio 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()
Esempio 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()