Added force option to start.

This commit is contained in:
Elijah Perrault committed 2011-02-03 13:37:44 -07:00
1 parent f7481bc0fa
commit 2a246c3e32
1 file changed
+10 -1
+10 -1
View File
@@ -7,7 +7,16 @@ EMODS="MIME::Base64 XML::Simple"
if [ "$1" = "start" ] ; then
if [ -e $PID ]; then
echo "Auto appears to be running already."
if [ "$2" = "force" ]; then
echo "Starting Auto. . ."
bin/auto
sleep 2
if [ ! -r $PID ]; then
echo "Possible failed startup... check Auto logs for more information."
fi
else
echo "Auto appears to be running already. Run ./auto start force to start anyway."
fi
else
echo "Starting Auto. . ."
bin/auto