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 ...@@ -9,6 +9,7 @@ import logging.handlers
from optparse import OptionParser, Option from optparse import OptionParser, Option
import os import os
import sys import sys
from slapos.runner.utils import runInstanceWithLock
class Parser(OptionParser): class Parser(OptionParser):
...@@ -142,5 +143,6 @@ def serve(config): ...@@ -142,5 +143,6 @@ def serve(config):
os.mkdir(workdir) os.mkdir(workdir)
if not os.path.exists(software_link): if not os.path.exists(software_link):
os.mkdir(software_link) os.mkdir(software_link)
runInstanceWithLock(app.config)
app.run(host=config.runner_host, port=int(config.runner_port), app.run(host=config.runner_host, port=int(config.runner_port),
debug=config.debug, threaded=True) 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