From 5799008d9cc1777e1cfbe8dc2f43fab0464a5d1f Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 7 Feb 2012 02:39:51 +1000 Subject: Use the real pid file, not just the one I test with. --- start-sim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 if [ -e /var/run/opensim/${tgt}.pid ] then # Double check if it's REALLY running. - if [ "x$(ps -p $(cat /var/run/opensim/sim90.pid) --no-headers -o comm)" = "x" ]; then + if [ "x$(ps -p $(cat /var/run/opensim/${tgt}.pid) --no-headers -o comm)" = "x" ]; then $SUDO rm -f /var/run/opensim/${tgt}.pid fi fi -- cgit v1.1