#!/bin/sh # # Usage: stop_servers [hostname [path]] # # This script turns a host into a OpenV*Secure primary server for the # realm SECURE-TEST.OV.COM. If no arguments are specified, # the local host is affected. Otherwise, the host hostname is # affected; the path argument is the top of the Secure install tree on # that host, and if it is not specified the current canonical value of # TOP is used. DUMMY=${TESTDIR=$TOP/testing} DUMMY=${FIX_CONF_FILES=$TESTDIR/scripts/fixup-conf-files.pl} DUMMY=${STOP_SERVERS_LOCAL=$TESTDIR/scripts/stop_servers_local} # This'll be wrong sometimes DUMMY=${RSH_CMD=/usr/ucb/rsh} DUMMY=${RESTORE_FILES=$TESTDIR/scripts/restore_files.sh} # If it's set, set it to true VERBOSE=${VERBOSE_TEST:+true} # Otherwise, set it to false DUMMY=${VERBOSE:=false} local=1 if [ $# -gt 0 ]; then if [ $# != 1 -a $# != 2 ]; then echo "Usage: $0 [hostname [path]]" 1>&2 exit 1 fi local=0 hostname=$1 if [ $# = 1 ]; then rempath=`sh -c "cd $TOP && pwd"` else rempath=$2 fi fi if [ $local = 0 ]; then if $VERBOSE; then echo "+++ Stopping servers on remote host $hostname..." fi # $FIX_CONF_FILES -server $hostname # # KRB5CCNAME=FILE:/tmp/krb5cc_stop_servers; export KRB5CCNAME # # expect <