Author: remi
Date: 2009-03-30 13:35:01 +0200 (Mon, 30 Mar 2009)
New Revision: 4255

Modified:
   software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
Log:
* can't start the server if it is already started. Force user to use --restart 
command.

Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py     
2009-03-30 11:32:47 UTC (rev 4254)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py     
2009-03-30 11:35:01 UTC (rev 4255)
@@ -136,5 +136,9 @@
         killServerAndWait()
         start()
     else:
-        start()
+        if checkServerRun():
+            print "Server is already started"
+            print "Uses --restart if you want to restart the server.. so, 
exiting."
+        else:
+            start()
 


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to