#! /bin/sh ### BEGIN INIT INFO # Provides: sipb-xen-console-server # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: conserver config from invirt config for invirt host # Description: ### END INIT INFO # Author: Invirt/XVM Project, MIT SIPB # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Invirt host console config" NAME=sipb-xen-console-server SCRIPTNAME=/etc/init.d/$NAME # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions gen_config() { console_ip=$(invirt-getconf console.ip) cat >/etc/conserver/invirt-genconfig.cf <&2 exit 3 ;; esac :