1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

test: replace stop+start by restart

This suppress the following warnings:
```
Warning: Stopping systemd-networkd.service, but it can still be activated by:
  systemd-networkd.socket
```
This commit is contained in:
Yu Watanabe 2018-10-03 14:16:24 +09:00
parent 9380d34c2a
commit ec6a47044a

View File

@ -99,9 +99,7 @@ class Utilities():
os.remove(dnsmasq_log_file)
def start_networkd(self):
subprocess.check_call('systemctl stop systemd-networkd', shell=True)
time.sleep(1)
subprocess.check_call('systemctl start systemd-networkd', shell=True)
subprocess.check_call('systemctl restart systemd-networkd', shell=True)
time.sleep(5)
global ip