server/serverctl.py
branch3.5
changeset 3184 613064b49331
parent 3115 29262ba01464
parent 3180 6bab5746ebf5
child 3185 bd0126d17e83
child 3301 1050fcfdb5cf
equal deleted inserted replaced
3177:e7ae807554d9 3184:613064b49331
   208 
   208 
   209 class RepositoryStartHandler(CommandHandler):
   209 class RepositoryStartHandler(CommandHandler):
   210     cmdname = 'start'
   210     cmdname = 'start'
   211     cfgname = 'repository'
   211     cfgname = 'repository'
   212 
   212 
   213     def start_command(self, ctlconf, debug):
   213     def start_server(self, ctlconf, debug):
   214         command = ['cubicweb-ctl start-repository ']
   214         command = ['cubicweb-ctl start-repository ']
   215         if debug:
   215         if debug:
   216             command.append('--debug')
   216             command.append('--debug')
   217         command.append(self.config.appid)
   217         command.append(self.config.appid)
   218         return ' '.join(command)
   218         os.system(' '.join(command))
   219 
   219 
   220 
   220 
   221 class RepositoryStopHandler(CommandHandler):
   221 class RepositoryStopHandler(CommandHandler):
   222     cmdname = 'stop'
   222     cmdname = 'stop'
   223     cfgname = 'repository'
   223     cfgname = 'repository'