]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blobdiff - debian/spamass-milter.init
do not remove the socket if spamass milter is already running
[deb_pkgs/spamass-milter.git] / debian / spamass-milter.init
index 310ae83ce6182856b2ac0a93c5204b58595a9438..b94fd43e70339048e9bb642dfbfce22b91f26cc3 100644 (file)
@@ -90,6 +90,10 @@ fi;
 set -e
 
 start() {
+    if status; then
+        echo "$NAME is already running";
+        exit 1;
+    fi;
     # Because the default socket is in the same location as the
     # pidfile, we create them in this order.
     for DIR in "$(dirname $PIDFILE)" "$(dirname $SOCKET)"; do