Changeset 830 for trunk/packages/sipb-xen-remote-server/files/usr
- Timestamp:
- Aug 3, 2008, 12:32:21 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-remote-server/files/usr/sbin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remconffs
r519 r830 14 14 15 15 import sipb_xen_database 16 from invirt.config import structs as config 16 17 17 18 fuse.fuse_python_api = (0, 2) … … 121 122 else: 122 123 princ = user 123 realm = "ATHENA.MIT.EDU"124 realm = config.authn[0].realm 124 125 125 126 return princ.replace('.', '/') + '@' + realm … … 228 229 229 230 if __name__ == '__main__': 230 sipb_xen_database.connect( 'postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')231 sipb_xen_database.connect(db.uri) 231 232 usage=""" 232 233 $0 [mount_path] -
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remctl-help
r663 r830 4 4 """ 5 5 import sys 6 6 from invirt.config import structs as config 7 7 8 8 help = [ … … 27 27 def main(args): 28 28 args = [n for n in args if n in helpdict] 29 print 'remctl remote control <machine> <command>'29 print 'remctl %s control <machine> <command>' % config.remote.hostname 30 30 if args: 31 31 for name in args: -
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remote-proxy
r777 r830 1 #!/bin/ sh1 #!/bin/bash 2 2 # invoke as sipb-xen-remote-proxy-$TYPE, with "TYPE" in the remctl sense. 3 3 … … 23 23 sipb-xen-remote-control "$MACHINE" "$SERVICE" "$@" ;; 24 24 * ) 25 remctl black-mesaremote "$TYPE" "$SERVICE" "$@" ;;25 remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;; 26 26 esac
Note: See TracChangeset
for help on using the changeset viewer.