Add startMongod() and stopMongod() functions to mongo

This commit is contained in:
Aaron
2009-01-29 11:46:29 -05:00
parent f3634828db
commit 8c926dd74d
7 changed files with 204 additions and 4 deletions

View File

@@ -18,6 +18,8 @@ void quitNicely( int sig ){
int main(int argc, char* argv[]) {
signal( SIGINT , quitNicely );
RecordMyLocation( argv[ 0 ] );
//v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
@@ -161,6 +163,7 @@ int main(int argc, char* argv[]) {
return 1;
}
MongodScope s;
if (!ExecuteString(source, file_name, false, true)){
cout << "error processing: " << file_name << endl;
return 1;
@@ -174,6 +177,8 @@ int main(int argc, char* argv[]) {
if ( runShell ){
MongodScope s;
using_history();
read_history( ".dbshell" );