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"
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user