diff options
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-x | bin/cloud-init | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init index 1f017475..c5a5b949 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -33,8 +33,12 @@ possible_topdir = os.path.normpath(os.path.join(os.path.abspath( if os.path.exists(os.path.join(possible_topdir, "cloudinit", "__init__.py")): sys.path.insert(0, possible_topdir) +from cloudinit import patcher +patcher.patch() + from cloudinit import log as logging from cloudinit import netinfo +from cloudinit import signal_handler from cloudinit import sources from cloudinit import stages from cloudinit import templater @@ -494,6 +498,9 @@ def main(): if args.debug: logging.setupBasicLogging() + # Setup signal handlers before running + signal_handler.attach_handlers() + (name, functor) = args.action return functor(name, args) |