- Timestamp:
- Aug 3, 2008, 12:46:09 AM (16 years ago)
- Location:
- trunk/packages/sipb-xen-remctl-auto
- Files:
-
- 2 deleted
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init
r831 r834 1 #! /bin/ sh1 #! /bin/bash 2 2 ### BEGIN INIT INFO 3 # Provides: sipb-xen- console-server3 # Provides: sipb-xen-remctl-auto 4 4 # Required-Start: $local_fs $remote_fs 5 5 # Required-Stop: $local_fs $remote_fs … … 17 17 PATH=/sbin:/usr/sbin:/bin:/usr/bin 18 18 DESC="Invirt host console config" 19 NAME=sipb-xen- console-server19 NAME=sipb-xen-remctl-auto 20 20 SCRIPTNAME=/etc/init.d/$NAME 21 21 … … 32 32 gen_config() 33 33 { 34 console_ip=$(invirt-getconf console.ip) 35 cat >/etc/conserver/invirt-genconfig.cf <<EOF 36 access * { 37 trusted 127.0.0.1; 38 trusted $console_ip; 39 limited *; 40 } 41 EOF 34 echo "host/$(invirt-getconf remote.hostname)@$(invirt-getconf authn.0.realm)" \ 35 > /etc/remctl/acl/remote 42 36 } 43 37 … … 52 46 # 2 if daemon could not be started 53 47 gen_config 54 VERBOSE=no /etc/init.d/conserver-server reload55 48 } 56 49 … … 60 53 do_stop() 61 54 { 62 return 155 return 0 63 56 } 64 57 … … 66 59 { 67 60 gen_config 68 VERBOSE=no /etc/init.d/conserver-server reload69 61 } 70 62 -
trunk/packages/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-lvm
r175 r834 4 4 import os.path 5 5 from subprocess import call, PIPE, Popen 6 from invirt.config import structs as config 6 7 7 8 def check(b): … … 22 23 from sipb_xen_database import * 23 24 import re 24 connect( 'postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')25 connect(config.db.uri) 25 26 for d in Disk.select(): 26 27 check(re.match('^[A-Za-z0-9]+$', d.guest_device_name))
Note: See TracChangeset
for help on using the changeset viewer.