server/serverctl.py
branchstable
changeset 3180 6bab5746ebf5
parent 2969 d95f23a0fc3b
child 3184 613064b49331
equal deleted inserted replaced
3179:0684544f6d0d 3180:6bab5746ebf5
   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'