- Timestamp:
- Apr 2, 2008, 4:36:45 AM (17 years ago)
- Location:
- trunk/packages
- Files:
-
- 2 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-console-server/debian/changelog
r393 r397 1 sipb-xen-console-server (2) unstable; urgency=low 2 3 * Use a python based update-conserver script that gets the list of 4 consoles from xm list 5 * Run the update-conserver script every 5 minutes to catch VMs that 6 are not started or stopped through the remctl interface 7 8 -- Evan Broder <broder@sipb-xen-dev.mit.edu> Wed, 2 Apr 2008 04:32:58 -0400 9 1 10 sipb-xen-console-server (1.0.2) unstable; urgency=low 2 11 -
trunk/packages/sipb-xen-console-server/files/etc/conserver/conserver.cf.sipb-xen
r391 r397 24 24 } 25 25 26 #include /etc/conserver/ includes.cf26 #include /etc/conserver/sipb-xen-consoles.cf 27 27 28 28 ## -
trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver
r386 r397 1 #!/ bin/bash1 #!/usr/bin/python 2 2 3 ls /etc/conserver/conf.d/ | sed -e 's|^|#include /etc/conserver/conf.d/|' >/etc/conserver/includes.cf 4 /etc/init.d/conserver-server reload 3 import sipb_xen_database 4 import subprocess 5 import os 6 7 sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen') 8 9 def live_vms(): 10 p = subprocess.Popen(['xm', 'list'], stdout=subprocess.PIPE) 11 p.wait() 12 output = p.stdout.read() 13 vms = [x.split()[0][2:] for x in output.splitlines() if x.startswith('d_')] 14 return vms 15 16 def reload_conserver(): 17 p = subprocess.Popen(['/etc/init.d/conserver-server', 'restart'], stdout=subprocess.PIPE) 18 p.wait() 19 20 if __name__ == '__main__': 21 f = open('/etc/conserver/sipb-xen-consoles.cf', 'w') 22 f.write('\n'.join('console %s {}' % vm for vm in live_vms())) 23 f.close() 24 reload_conserver() -
trunk/packages/sipb-xen-remctl-auto/debian/changelog
r386 r397 1 sipb-xen-remctl-auto (1.0.9) unstable; urgency=low 2 3 * Change the way that conserver is updated 4 5 -- Evan Broder <broder@sipb-xen-dev.mit.edu> Wed, 2 Apr 2008 04:36:04 -0400 6 1 7 sipb-xen-remctl-auto (1.0.8) unstable; urgency=low 2 8 -
trunk/packages/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-vmcontrol
r386 r397 20 20 destroy|shutdown) 21 21 xm "$ACTION" "$MACHINE" 22 rm "/etc/conserver/conf.d/$MACHINE"23 22 /usr/sbin/sipb-xen-update-conserver 24 23 ;; … … 40 39 xm create sipb-database machine_name="$ORIGMACHINE" 41 40 fi 42 echo "console $ORIGMACHINE {}" >"/etc/conserver/conf.d/$MACHINE"43 41 /usr/sbin/sipb-xen-update-conserver 44 42 ;;
Note: See TracChangeset
for help on using the changeset viewer.