Added a simple check to stop Auto from being ran multiple times
This commit is contained in:
1 parent
137e502906
commit
fb4a0b1db2
1 file changed
+9
-5
@@ -6,11 +6,15 @@ MODS="Mouse Async Class::Unload"
|
|||||||
EMODS="MIME::Base64"
|
EMODS="MIME::Base64"
|
||||||
|
|
||||||
if [ "$1" = "start" ] ; then
|
if [ "$1" = "start" ] ; then
|
||||||
echo "Starting Auto. . ."
|
if [ -e $PID ]; then
|
||||||
bin/auto
|
echo "Auto appears to be running already."
|
||||||
sleep 2
|
else
|
||||||
if [ ! -r $PID ]; then
|
echo "Starting Auto. . ."
|
||||||
echo "Possible failed startup... check Auto logs for more information"
|
bin/auto
|
||||||
|
sleep 2
|
||||||
|
if [ ! -r $PID ]; then
|
||||||
|
echo "Possible failed startup... check Auto logs for more information"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$1" = "stop" ]; then
|
elif [ "$1" = "stop" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user