mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
mongodb: remove lock file on restart
This commit is contained in:
parent
aa91480f45
commit
1cddb5be20
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue