From 3ac8eb779ecde3ba8c04252ad60d6d6250582a3f Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 18 Apr 2023 01:49:06 +0700 Subject: [PATCH] add stop service --- vestasync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vestasync.py b/vestasync.py index 50fe7d7..be8b766 100755 --- a/vestasync.py +++ b/vestasync.py @@ -109,6 +109,7 @@ def copy_wb_rule(c): def create_automac_systemd(c): #disable for service in ['apply_macs.service']: + c.run(f'systemctl stop {service}', warn=True) c.run(f'systemctl disable {service}', warn=True) file_paths = { #local path: remote path @@ -142,6 +143,7 @@ def create_automac_systemd(c): def create_autogit_systemd(c): #disable for service in ['pushgit.timer', 'pushgit_inotify.service']: + c.run(f'systemctl stop {service}', warn=True) c.run(f'systemctl disable {service}', warn=True)