summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunaid Ali <junaidali@plumgrid.com>2016-04-27 03:47:45 -0700
committerJunaid Ali <junaidali@plumgrid.com>2016-04-27 03:47:45 -0700
commit721c1d27ba14b442de82f09636f0c34456cf07d1 (patch)
treefbdc8604fe14a18475cf59275b2c64789978db4e
parent2212d1eae1d466eb547246d626d76a72c7a2cd88 (diff)
Updated restart_pg function
-rw-r--r--hooks/pg_gw_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/hooks/pg_gw_utils.py b/hooks/pg_gw_utils.py
index 57a9632..8cfc815 100644
--- a/hooks/pg_gw_utils.py
+++ b/hooks/pg_gw_utils.py
@@ -158,7 +158,9 @@ def restart_pg():
158 if service_start('libvirt-bin'): 158 if service_start('libvirt-bin'):
159 time.sleep(3) 159 time.sleep(3)
160 if not service_running('plumgrid'): 160 if not service_running('plumgrid'):
161 raise ValueError("plumgrid service couldn't be started") 161 if not service_start('plumgrid'):
162 raise ValueError("plumgrid service couldn't be started"
163 )
162 else: 164 else:
163 raise ValueError("libvirt-bin service couldn't be started") 165 raise ValueError("libvirt-bin service couldn't be started")
164 status_set('active', 'Unit is ready') 166 status_set('active', 'Unit is ready')