[SCM] branch, master, updated. debian/0.45-1-13-g898ff4d

gregor herrmann gregoa at debian.org
Sat Oct 20 00:52:13 UTC 2012


The following commit has been merged in the master branch:
commit 898ff4dd583860ae987413c9407746b85d257df1
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Oct 20 02:50:58 2012 +0200

    kill mongod only if PIDFILE exists and has a size > 0
    
    if mongod dies before, an empty PIDFILE is still lingering around which
    makes kill unhappy, unsurprisingly
    
    Git-Dch: Ignore

diff --git a/debian/rules b/debian/rules
index 6cdaa84..9cf0565 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,8 @@ override_dh_auto_test:
 	mongod --dbpath $(BUILDHOME) --noprealloc --nojournal --quiet --fork --logpath $(BUILDHOME)/mongod.log --pidfilepath $(PIDFILE)
 	sleep 10
 	dh_auto_test
-	/bin/kill `cat $(PIDFILE)`
+	[ ! -s $(PIDFILE) ] || /bin/kill `cat $(PIDFILE)`
 
 override_dh_clean:
 	dh_clean
-	rm -rf $(BUILDHOME)
\ No newline at end of file
+	rm -rf $(BUILDHOME)

-- 




More information about the Pkg-perl-cvs-commits mailing list