summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-11 17:14:00 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-04-11 17:14:00 +0000
commit644ff358944b4e53a3c43a4a638dfc39304d499f (patch)
treee44501b5be8273e4bb6b44b9bd0c4e5b57b7cf35
parent45d12d8cbadea09174099d16b2ef36ecc1e887c9 (diff)
downloadATCD-644ff358944b4e53a3c43a4a638dfc39304d499f.tar.gz
Improved the functionality of the ss script, added some documentation
and added a new option to only kill the old services and not restart them again.
-rwxr-xr-xTAO/examples/Simulator/ss22
1 files changed, 20 insertions, 2 deletions
diff --git a/TAO/examples/Simulator/ss b/TAO/examples/Simulator/ss
index 5d5c02483f4..12177907b25 100755
--- a/TAO/examples/Simulator/ss
+++ b/TAO/examples/Simulator/ss
@@ -1,10 +1,22 @@
#!/bin/ksh
# $Id$
-#saving old working dir
-
+# =TITLE
+# Restart script
+#
+# =AUTHOR
+# Michael Kircher (mk1@cs.wustl.edu)
+#
+# =DESCRIPTION
+# This script restarts the Naming, Scheduling and Event Service,
+# if "clean" is specified as a parameter, then the old
+# services are only killed and not restarted
+
+# save the old working dir
old_dir=$cwd
+# get the user name
login=`whoami`
+# get the user id
uid=`id | cut -c5-20 | cut -f1 -d"("`
#### Set TAO_ROOT, if it wasn't set.
@@ -26,6 +38,12 @@ if [ -s /tmp/pids$login ]; then
kill $pids
fi
+# stop here if "ss clean" was called
+if [ $1 ]; then
+ if [ $1 = "clean" ]; then
+ exit
+ fi
+fi
echo // Initializing the log file