Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

kill offlineimap if hung

  • Loading branch information...
commit 2260fe12f5da65bf8180794b38184dc66ca70ab0 1 parent a629983
@w0ng authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mailrun
View
4 mailrun
@@ -7,7 +7,7 @@ read -r pid < ~/.offlineimap/pid
if ps $pid &>/dev/null; then
echo "offlineimap ($pid): another instance running." >&2
- exit 1
+ kill -9 $pid
fi
-exec offlineimap -o -u quiet
+offlineimap -o -u quiet &
Please sign in to comment.
Something went wrong with that request. Please try again.