diff options
author | yayogev <yaronyogev@gmail.com> | 2017-09-04 14:04:32 +0300 |
---|---|---|
committer | yayogev <yaronyogev@gmail.com> | 2017-09-04 14:04:32 +0300 |
commit | 3871b1ff0941ed3f3241c467179fa9bd0f6aab6e (patch) | |
tree | 729999fd93f41e571a0a3c5a655d82266418d49c /app/monitoring | |
parent | 692489cc50c8025ede1646627a7a583a4feb3798 (diff) |
DE878 restart services with 'service X restart'
Change-Id: I435bfe1f7c4faee625773fde28a1a552d6c19bc5
Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/monitoring')
-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: |