summaryrefslogtreecommitdiff
path: root/bin/cloud-init
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cloud-init')
-rwxr-xr-xbin/cloud-init4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cloud-init b/bin/cloud-init
index b2a6c3ea..c5a5b949 100755
--- a/bin/cloud-init
+++ b/bin/cloud-init
@@ -38,6 +38,7 @@ 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
@@ -497,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)