Initial revision
This commit is contained in:
36
doc/manager/startsics
Executable file
36
doc/manager/startsics
Executable file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/ksh
|
||||
#-------------------------------------------------------------------------
|
||||
# shell sript to start the servers necessary for running SICS.
|
||||
# checks if they are not already running.
|
||||
#
|
||||
# Mark Koennecke, Juli 1998
|
||||
#------------------------------------------------------------------------
|
||||
inst=test
|
||||
shome=$HOME/src/sics
|
||||
# start SICServer
|
||||
ps waux > /tmp/ps.lis
|
||||
grep SICServer /tmp/ps.lis > /dev/null
|
||||
if [ $? -eq 1 ] ; then
|
||||
echo "Starting SICServer"
|
||||
cd $shome
|
||||
com="SICServer $inst.tcl"
|
||||
keepalive "$com" &
|
||||
else
|
||||
echo "SICServer exists"
|
||||
fi
|
||||
rm /tmp/ps.lis
|
||||
|
||||
# start replicator service
|
||||
ps waux > /tmp/ps.lis
|
||||
grep replicator.jar /tmp/ps.lis > /dev/null
|
||||
if [ $? -eq 1 ] ; then
|
||||
echo "Starting Data Replicator"
|
||||
cd $shome
|
||||
com1="jre -classpath /usr/lib/classes.zip:$shome/replicator.jar Replicator "
|
||||
com2=$sheim/replicator.conf
|
||||
com=$com1$com2
|
||||
keepalive "$com" &
|
||||
else
|
||||
echo "Data Replicator exists"
|
||||
fi
|
||||
rm /tmp/ps.lis
|
Reference in New Issue
Block a user