Added force option to start.
This commit is contained in:
1 parent
f7481bc0fa
commit
2a246c3e32
1 file changed
+10
-1
@@ -7,7 +7,16 @@ EMODS="MIME::Base64 XML::Simple"
|
|||||||
|
|
||||||
if [ "$1" = "start" ] ; then
|
if [ "$1" = "start" ] ; then
|
||||||
if [ -e $PID ]; 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
|
else
|
||||||
echo "Starting Auto. . ."
|
echo "Starting Auto. . ."
|
||||||
bin/auto
|
bin/auto
|
||||||
|
|||||||
Reference in new issue
Block a user