Added a simple check to stop Auto from being ran multiple times

This commit is contained in:
Matthew Barksdale committed 2011-01-21 17:53:41 -05:00
1 parent 137e502906
commit fb4a0b1db2
1 file changed
+9 -5
+9 -5
View File
@@ -6,11 +6,15 @@ MODS="Mouse Async Class::Unload"
EMODS="MIME::Base64"
if [ "$1" = "start" ] ; then
echo "Starting Auto. . ."
bin/auto
sleep 2
if [ ! -r $PID ]; then
echo "Possible failed startup... check Auto logs for more information"
if [ -e $PID ]; then
echo "Auto appears to be running already."
else
echo "Starting Auto. . ."
bin/auto
sleep 2
if [ ! -r $PID ]; then
echo "Possible failed startup... check Auto logs for more information"
fi
fi
elif [ "$1" = "stop" ]; then