From: stack Date: Mon, 9 Jul 2012 00:18:25 +0000 (+0200) Subject: stop sync in linux before killing daemon X-Git-Url: https://v.licheni.net/stack/code/dboxswitch.git/commitdiff_plain/ee451b0ae08e635da522f3381b2a34d4e1c8b594?ds=inline stop sync in linux before killing daemon --- diff --git a/profhandler.py b/profhandler.py index d0fbb17..18dda25 100755 --- a/profhandler.py +++ b/profhandler.py @@ -160,6 +160,8 @@ class ProfHandler(): 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: