diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-06 18:12:21 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-06 18:12:21 -0700 |
commit | 01ad8fc5b1928c01367b32022ceab09f1dc5dc26 (patch) | |
tree | b6e0959f436c98916e2b1ff8e12f541cad3b2f42 /bin | |
parent | 75bec162045856b39b483d11a0b3a7a75886efd2 (diff) | |
download | vyos-cloud-init-01ad8fc5b1928c01367b32022ceab09f1dc5dc26.tar.gz vyos-cloud-init-01ad8fc5b1928c01367b32022ceab09f1dc5dc26.zip |
Add capturing of basic signal handlers to
handle those signals more gracefully and
with better messaging than what comes builtin.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cloud-init | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init index 1f017475..a6ad14a6 100755 --- a/bin/cloud-init +++ b/bin/cloud-init @@ -35,6 +35,7 @@ if os.path.exists(os.path.join(possible_topdir, "cloudinit", "__init__.py")): 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 +495,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) |