Merge branch 'indev' of github.com:Xelhua/Auto into indev

This commit is contained in:
Elijah Perrault committed 2011-01-21 16:29:25 -07:00
commit 0330cfeab3
1 file changed
+14 -6
+14 -6
View File
@@ -3,13 +3,18 @@
PID=bin/auto.pid
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
@@ -29,6 +34,9 @@ elif [ "$1" = "status" ]; then
elif [ "$1" = "getmodules" ]; then
cpan -i $MODS
elif [ "$1" = "getextras" ]; then
cpan -i $EMODS
else
echo "Usage: auto (start|stop|rehash|status|getmodules)"
echo "Usage: auto (start|stop|rehash|status|getmodules|getextras)"
fi