From 1cddb5be20bc52ec6b7d765bad177d19c3514833 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 23 Feb 2015 20:39:33 +0100 Subject: [PATCH] mongodb: remove lock file on restart --- nixos/modules/services/databases/mongodb.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/databases/mongodb.nix b/nixos/modules/services/databases/mongodb.nix index 02e44ad8870..14ffdad9217 100644 --- a/nixos/modules/services/databases/mongodb.nix +++ b/nixos/modules/services/databases/mongodb.nix @@ -120,6 +120,7 @@ in }; preStart = '' + rm ${cfg.dbpath}/mongod.lock || true if ! test -e ${cfg.dbpath}; then install -d -m0700 -o ${cfg.user} ${cfg.dbpath} fi