• 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
bin Loading commit data...
cloudinit Loading commit data...
config Loading commit data...
doc Loading commit data...
packages Loading commit data...
systemd Loading commit data...
sysvinit Loading commit data...
templates Loading commit data...
tests Loading commit data...
tools Loading commit data...
udev Loading commit data...
upstart Loading commit data...
.bzrignore Loading commit data...
ChangeLog Loading commit data...
HACKING.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
TODO.rst Loading commit data...
requirements.txt Loading commit data...
setup.py Loading commit data...
test-requirements.txt Loading commit data...
tox.ini Loading commit data...