diff options
author | Yaron Yogev <yaronyogev@gmail.com> | 2017-09-04 11:09:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-04 11:09:00 +0000 |
commit | 3b88c2537aa558db80579a3113245a14d3a3a2fd (patch) | |
tree | 4c8f66f4fce3a93a847a196c45c62076d4b9e6cd /app/monitoring/setup | |
parent | 0eeef04be692d1a41840b82c4583a2c6c74692a1 (diff) | |
parent | 3871b1ff0941ed3f3241c467179fa9bd0f6aab6e (diff) |
Merge "DE878 restart services with 'service X restart'"
Diffstat (limited to 'app/monitoring/setup')
-rw-r--r-- | app/monitoring/setup/monitoring_handler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/monitoring/setup/monitoring_handler.py b/app/monitoring/setup/monitoring_handler.py index e4af85d..7a95a3a 100644 --- a/app/monitoring/setup/monitoring_handler.py +++ b/app/monitoring/setup/monitoring_handler.py @@ -377,7 +377,7 @@ class MonitoringHandler(MongoAccess, CliAccess, BinaryConverter): is_server: bool = False, msg: str =None): ssh = self.get_ssh(host) - cmd = 'sudo /etc/init.d/{} restart'.format(service) + cmd = 'sudo service {} restart'.format(service) log_msg = msg if msg else 'deploying config to host {}'.format(host) self.log.info(log_msg) try: |