#!/usr/bin/python
-import sipb_xen_database
import subprocess
import os
import socket
from invirt.config import structs as config
-sipb_xen_database.connect(config.db.uri)
-
def live_vms():
p = subprocess.Popen(['/usr/sbin/xm', 'list'], stdout=subprocess.PIPE)
p.wait()
return vms
def reload_conserver():
- p = subprocess.Popen(['/etc/init.d/conserver-server', 'reload'], stdout=subprocess.PIPE)
+ p = subprocess.Popen(['/usr/sbin/invoke-rc.d', 'conserver-server', 'reload'], stdout=subprocess.PIPE)
p.wait()
if __name__ == '__main__':