Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Last active August 29, 2015 14:15
Show Gist options
  • Save Voronenko/4c68f9a98691d3ccaa19 to your computer and use it in GitHub Desktop.
Save Voronenko/4c68f9a98691d3ccaa19 to your computer and use it in GitHub Desktop.
Dirty mongo repair script
#!/bin/sh
sudo rm /var/lib/mongodb/mongod.lock 
sudo -u mongodb mongod -f /etc/mongod.conf --repair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment