diff options
Diffstat (limited to 'app')
-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: |