Commit a9332a49 authored by Mike Hibler's avatar Mike Hibler

Copyright Man strikes again!

parent 305ba46e
#!/usr/bin/perl
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
#
#TODO:
......
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
#
# Utah Network Testbed Flexlab (aka PELAB) startup
#
# XXX config me
PE_PID=tbres
PE_EID=pelabbgmon
BINDIR="/usr/testbed/sbin"
ETCDIR="/usr/testbed/etc"
LOGDIR="/usr/testbed/log/pelab"
opsrecv_args="-e $PE_PID/$PE_EID -d1"
manager_args=""
automanagerclient_args="-l600 0.10"
case "$1" in
start)
if [ -x $BINDIR/opsrecv.pl -a -r $ETCDIR/pelabdb.pwd ]; then
if [ ! -d $LOGDIR ]; then
mkdir -m 755 $LOGDIR
fi
if [ -x $BINDIR/daemon_wrapper ]; then
$BINDIR/daemon_wrapper -n opsrecv -l $LOGDIR/opsrecv.log -- \
$BINDIR/opsrecv.pl $opsrecv_args
$BINDIR/daemon_wrapper -n manager -l $LOGDIR/manager.log -- \
$BINDIR/manager.pl $manager_args
$BINDIR/daemon_wrapper -n automanagerclient -l $LOGDIR/automanagerclient.log -- \
$BINDIR/automanagerclient.pl $automanagerclient_args
else
$BINDIR/opsrecv.pl $opsrecv_args >$LOGDIR/opsrecv.log 2>&1 &
$BINDIR/manager.pl $manager_args >$LOGDIR/manager.log 2>&1 &
$BINDIR/automanagerclient.pl $automanagerclient_args >$LOGDIR/automanagerclient.log 2>&1 &
fi
fi
;;
stop)
if [ -r /var/run/opsrecv_wrapper.pid ]; then
kill `cat /var/run/opsrecv_wrapper.pid`
kill `cat /var/run/manager_wrapper.pid`
kill `cat /var/run/automanagerclient_wrapper.pid`
else
pkill -f "perl.*$BINDIR/daemon_wrapper.*(automanagerclient|manager|opsrecv)\.pl"
fi
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac
#!/bin/csh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#
perl opsrecv.pl -e tbres/pelabbgmon -d1 >! log.opsrecv &
perl manager.pl >! log.manager &
......
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -53,6 +53,8 @@ line parameters not used can be set to anything for placeholders.
+ libwanetmon.pm - Common subroutines and variables used in many
scripts in this system.
+ pelab.sh - Daemon startup script that goes in /usr/local/etc/rc.d on
our ops node.
(Overview - bgmon.pl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment