• Scott Moser's avatar
    power_state: support 'condition' argument · ba3e59cb
    Scott Moser authored
      
      if 'condition' is provided to config in power_state, then
      consult it before powering off.
      
      This allows the user to shut down only if a condition is met, and
      leave the system in a debuggable state otherwise.
      
      An example is as simple as:
       power_state:
         mode: poweroff
         condition: ['sh', '-c', '[ -f /disable-poweroff ]']
    ba3e59cb
Name
Last commit
Last update
..
examples Loading commit data...
rtd Loading commit data...
sources Loading commit data...
README Loading commit data...
merging.rst Loading commit data...
status.txt Loading commit data...
userdata.txt Loading commit data...
var-lib-cloud.txt Loading commit data...
vendordata.txt Loading commit data...