summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/Tools/__init__.py')
-rw-r--r--src/lib/Client/Tools/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py
index 9089260b0..105cff3cf 100644
--- a/src/lib/Client/Tools/__init__.py
+++ b/src/lib/Client/Tools/__init__.py
@@ -343,6 +343,10 @@ class SvcTool(Tool):
if self.setup['servicemode'] == 'build':
rc = self.stop_service(entry)
else:
+ if self.setup['interactive']:
+ prompt = 'Restart service %s?: (y/N): ' % entry.get('name')
+ if raw_input(prompt) not in ['y', 'Y']:
+ continue
rc = self.restart_service(entry)
else:
rc = self.stop_service(entry)