alternative radvd restart command added

This commit is contained in:
ahmadbilalkhalid 2019-11-27 23:48:38 +05:00
parent 46c14306ec
commit 66b7cf525f

View file

@ -103,9 +103,10 @@ def update_radvd_conf(etcd_client):
with open('/etc/radvd.conf', 'w') as radvd_conf:
radvd_conf.writelines(content)
try:
sp.check_output(['systemctl', 'restart', 'radvd'])
except Exception:
sp.check_output(['service', 'radvd', 'restart'])
def get_start_command_args(vm_entry, vnc_sock_filename: str, migration=False, migration_port=None):
threads_per_core = 1