Updated restart_pg function
This commit is contained in:
parent
2212d1eae1
commit
721c1d27ba
@ -158,7 +158,9 @@ def restart_pg():
|
|||||||
if service_start('libvirt-bin'):
|
if service_start('libvirt-bin'):
|
||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
if not service_running('plumgrid'):
|
if not service_running('plumgrid'):
|
||||||
raise ValueError("plumgrid service couldn't be started")
|
if not service_start('plumgrid'):
|
||||||
|
raise ValueError("plumgrid service couldn't be started"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
raise ValueError("libvirt-bin service couldn't be started")
|
raise ValueError("libvirt-bin service couldn't be started")
|
||||||
status_set('active', 'Unit is ready')
|
status_set('active', 'Unit is ready')
|
||||||
|
Loading…
Reference in New Issue
Block a user