propellor-3.0.0: property-based host configuration management in haskell

Safe HaskellNone
LanguageHaskell98

Propellor.Property.Reboot

Synopsis

Documentation

atEnd :: Bool -> (Result -> Bool) -> Property Linux Source

Schedules a reboot at the end of the current propellor run.

The Result code of the entire propellor run can be checked; the reboot proceeds only if the function returns True.

The reboot can be forced to run, which bypasses the init system. Useful if the init system might not be running for some reason.