WIP: software/theia: Add autorun option [redirected to https://lab.nexedi.com/nexedi/slapos/merge_requests/888]
This is step 3 of a 3-step plan to add an "autorun" feature to theia (See discussion in https://lab.nexedi.com/nexedi/slapos/merge_requests/888):
- Step 1: Add a
slapos-node-auto
service toslap/standalone
: See https://lab.nexedi.com/nexedi/slapos.core/merge_requests/280 - Step 2: Create a generic promise plugin to check the state of a service: See https://lab.nexedi.com/nexedi/slapos.toolbox/merge_requests/90
- Step 3: Add this
autorun
option tosoftware/theia
with 3 possible values:-
running
: buildout startsslapos-node-auto
and a promise is used to check that it is running -
stopped
: buildout stopsslapos-node-auto
and a promise is used to check that it is stopped -
undefined
: buildout leavesslapos-node-auto
as is, the promise is always fulfilled.
-