示例#1
0
 def start(self):
     """Start the Server
     """
     JNTServer.start(self)
     JNTControllerManager.start_controller(self, self.section, self.options, cmd_classes=[COMMAND_UPDATE], hadd=None, name="Raspberry Pi Server",
         product_name="Raspberry Pi Server", product_type="Raspberry Pi Server")
     JNTControllerManager.start_controller_timer(self)
示例#2
0
 def test_020_server_start(self):
     #~ self.wipTest("Pass but freeze nosetests")
     server = None
     with mock.patch('sys.argv', [self.prog, 'start', '--conf_file=tests/data/test_runner_conf_complete.conf']):
         options = vars(jnt_parse_args())
         server = JNTServer(options)
     server.start()
     time.sleep(5)
     server.stop()
示例#3
0
 def start(self):
     """Start the server. Must be called at the end of the children class.
     """
     self.start_db()
     JNTServer.start(self)