aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-07 02:39:51 +1000
committerDavid Walter Seikel2012-02-07 02:39:51 +1000
commit5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f (patch)
treed7c3afcb45916cf8a09c36940283c33b140e0d16
parentProperly check if the sim is running, not that untested shit I did last time.... (diff)
downloadIGnoble-5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f.zip
IGnoble-5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f.tar.gz
IGnoble-5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f.tar.bz2
IGnoble-5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f.tar.xz
Use the real pid file, not just the one I test with.
-rwxr-xr-xstart-sim2
1 files changed, 1 insertions, 1 deletions
diff --git a/start-sim b/start-sim
index c295d6c..89e38d6 100755
--- a/start-sim
+++ b/start-sim
@@ -78,7 +78,7 @@ case $(basename $0) in
78 if [ -e /var/run/opensim/${tgt}.pid ] 78 if [ -e /var/run/opensim/${tgt}.pid ]
79 then 79 then
80 # Double check if it's REALLY running. 80 # Double check if it's REALLY running.
81 if [ "x$(ps -p $(cat /var/run/opensim/sim90.pid) --no-headers -o comm)" = "x" ]; then 81 if [ "x$(ps -p $(cat /var/run/opensim/${tgt}.pid) --no-headers -o comm)" = "x" ]; then
82 $SUDO rm -f /var/run/opensim/${tgt}.pid 82 $SUDO rm -f /var/run/opensim/${tgt}.pid
83 fi 83 fi
84 fi 84 fi