Commit b5a6948a authored by Xavier Thompson's avatar Xavier Thompson

software/theia: Don't process instances on restart

Do not process embedded instances when theia's standalone service is
(re)started, e.g. when theia is upgraded or after rebooting.

Doing so before caused embedded services to start even when autorun
was otherwise stopped, i.e. autorun=stopped was not a guarantee that
the embedded instances would never be processed.
parent 637c4648
......@@ -35,7 +35,7 @@ md5sum = f0202548a2b5fa27d909faa701c6589b
[slapos-standalone-script]
_update_hash_filename_ = slapos_standalone_script.py.jinja
md5sum = 3572b3fa458505ae25ebcea9b1ed3267
md5sum = 17370cd3c8d42ac48d8a6d751075e8d6
[theia-common]
_update_hash_filename_ = theia_common.py
......
......@@ -87,12 +87,6 @@ def setupStandalone():
logging.info("Standalone SlapOS: Formatting %d partitions", partition_count)
standalone.format(partition_count, {{ repr(config['ipv4']) }}, {{ repr(config['ipv6']) }})
logging.info("Standalone SlapOS for computer `%s` started", {{ repr(config['computer-id']) }})
# Run instance at least once, to start the supervisor managing instances.
try:
standalone.waitForInstance(max_retry=0)
except slapos.slap.standalone.SlapOSNodeCommandError as e:
logging.info("Error instanciating: {}".format(e))
yield standalone
finally:
......
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