Changeset 834 for trunk/packages/sipb-xen-remctl-auto/debian
- Timestamp:
- Aug 3, 2008, 12:46:09 AM (16 years ago)
- File:
-
- 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
Note: See TracChangeset
for help on using the changeset viewer.