Use invoke-rc.d instead of calling init scripts directly in
[invirt/packages/invirt-console.git] / files / usr / sbin / invirt-console-update
index d5035e6..a6716d7 100755 (executable)
@@ -9,7 +9,7 @@ def main(args):
   f = file('/etc/conserver/conf.d/'+hostname, 'w')
   f.write(contents)
   f.close()
-  p = subprocess.Popen(['/etc/init.d/conserver-server', 'reload'],
+  p = subprocess.Popen(['invoke-rc.d', 'conserver-server', 'reload'],
                        stdout=subprocess.PIPE)
   p.wait()
   return 0