Ignore:
Timestamp:
Aug 3, 2008, 12:46:09 AM (16 years ago)
Author:
y_z
Message:

use invirt config in sipb-xen-lvm and to generate /etc/remctl/acl/remote

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remctl-auto/debian/sipb-xen-remctl-auto.init

    r831 r834  
    1 #! /bin/sh
     1#! /bin/bash
    22### BEGIN INIT INFO
    3 # Provides:          sipb-xen-console-server
     3# Provides:          sipb-xen-remctl-auto
    44# Required-Start:    $local_fs $remote_fs
    55# Required-Stop:     $local_fs $remote_fs
     
    1717PATH=/sbin:/usr/sbin:/bin:/usr/bin
    1818DESC="Invirt host console config"
    19 NAME=sipb-xen-console-server
     19NAME=sipb-xen-remctl-auto
    2020SCRIPTNAME=/etc/init.d/$NAME
    2121
     
    3232gen_config()
    3333{
    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
    4236}
    4337
     
    5246        #   2 if daemon could not be started
    5347        gen_config
    54         VERBOSE=no /etc/init.d/conserver-server reload
    5548}
    5649
     
    6053do_stop()
    6154{
    62         return 1
     55        return 0
    6356}
    6457
     
    6659{
    6760        gen_config
    68         VERBOSE=no /etc/init.d/conserver-server reload
    6961}
    7062
Note: See TracChangeset for help on using the changeset viewer.