Commit 2a35d1f0 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slapgrid-cp will be run on startup

Conflicts:

	slapos/runner/__init__.py
parent 27a3dbe2
......@@ -9,6 +9,7 @@ import logging.handlers
from optparse import OptionParser, Option
import os
import sys
from slapos.runner.utils import runInstanceWithLock
class Parser(OptionParser):
......@@ -142,5 +143,6 @@ def serve(config):
os.mkdir(workdir)
if not os.path.exists(software_link):
os.mkdir(software_link)
runInstanceWithLock(app.config)
app.run(host=config.runner_host, port=int(config.runner_port),
debug=config.debug, threaded=True)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment