Changeset 813 for trunk/packages/sipb-xen-console-server/files/usr/sbin
- Timestamp:
- Aug 1, 2008, 11:50:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-console-server/files/usr/sbin/sipb-xen-update-conserver
r811 r813 24 24 realm = config.authn[0].realm 25 25 principal = 'host/'+hostname+'@'+realm 26 conf ig= '\n'.join('console %s { master %s; }' % (vm, hostname)27 for vm in live_vms())26 conftext = '\n'.join('console %s { master %s; }' % (vm, hostname) 27 for vm in live_vms()) 28 28 f = open('/etc/conserver/sipb-xen-consoles.cf', 'w') 29 f.write(conf ig)29 f.write(conftext) 30 30 f.close() 31 31 reload_conserver() 32 32 subprocess.call(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab', 33 33 principal]) 34 subprocess.call(['/usr/bin/remctl', 'sipb-xen-console.mit.edu',35 'console', 'update', conf ig])34 subprocess.call(['/usr/bin/remctl', config.console.hostname, 35 'console', 'update', conftext])
Note: See TracChangeset
for help on using the changeset viewer.