stop sync in linux before killing daemon
authorstack <stack@inventati.org>
Mon, 9 Jul 2012 00:18:25 +0000 (02:18 +0200)
committerstack <stack@inventati.org>
Mon, 9 Jul 2012 00:18:25 +0000 (02:18 +0200)
profhandler.py

index d0fbb17..18dda25 100755 (executable)
@@ -160,6 +160,8 @@ class ProfHandler():
     def stopDropbox(self):
         """ Stop dropbox Daemon """
         pl = platform.system()
     def stopDropbox(self):
         """ Stop dropbox Daemon """
         pl = platform.system()
+        if pl == 'Linux':
+            os.system("dropbox stop")
         if pl in ('Linux','Darwin'):
             pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")                    
             try:                                                                      
         if pl in ('Linux','Darwin'):
             pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")                    
             try: