slap/standalone: add slapos-node-auto service
Add a slapos-node-auto service in slap/standalone that launches slapos-node-software and slapos-node-instance in a loop once per minute, and slapos-node-report once per hour (every 60 iterations).
This is step 1 of a 3-step plan to add an "autorun" feature to theia (See discussion in slapos!888 (merged)):
- Step 1: Add this
slapos-node-autoservice toslap/standalone. - Step 2: Create a generic promise plugin to check the state of a service (in slapos.toolbox)
- Step 3: Add an
autorunoption tosoftware/theiawith 3 possible values:-
running: buildout startsslapos-node-autoand a promise is used to check that it is running -
stopped: buildout stopsslapos-node-autoand a promise is used to check that it is stopped -
undefined: buildout leavesslapos-node-autoas is, the promise is always fulfilled.
-