git.iko.soy/typeable/nixpkgs
on master help sign in
mongodb: remove lock file on restart
commit1cddb5be20bc52ec6b7d765bad177d19c3514833 authorJaka Hudoklin <jakahudoklin@gmail.com> dateMon 23 Feb 2015, 20:39 (12 years ago) parentaa91480
1 file changed+1
nixos/modules/services/databases/mongodb.nix+1
nixos/modules/services/databases/mongodb.nix+1
@@ -120,6 +120,7 @@ in
120120 };
121121
122122 preStart = ''
123+ rm ${cfg.dbpath}/mongod.lock || true
123124 if ! test -e ${cfg.dbpath}; then
124125 install -d -m0700 -o ${cfg.user} ${cfg.dbpath}
125126 fi