Skip to content
Browse files

kill offlineimap if hung

  • Loading branch information...
1 parent a629983 commit 2260fe12f5da65bf8180794b38184dc66ca70ab0 Andrew Wong committed Jul 9, 2012
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 &

0 comments on commit 2260fe1

Please sign in to comment.
Something went wrong with that request. Please try again.