Use invoke-rc.d instead of calling init scripts directly in
[invirt/packages/invirt-console.git] / files / usr / sbin / invirt-update-conserver
index f87ae6c..b9aba8c 100755 (executable)
@@ -13,7 +13,7 @@ def live_vms():
     return vms
 
 def reload_conserver():
-    p = subprocess.Popen(['/etc/init.d/conserver-server', 'reload'], stdout=subprocess.PIPE)
+    p = subprocess.Popen(['invoke-rc.d', 'conserver-server', 'reload'], stdout=subprocess.PIPE)
     p.wait()
 
 if __name__ == '__main__':