don't exit after --create-db

Start the daemon after --create-db.  This makes --create-db a flag
which discards the old database and starts with a fresh one.
This commit is contained in:
Max Kellermann
2009-01-04 20:31:23 +01:00
parent 6fb8c54939
commit e4a53df7db
5 changed files with 4 additions and 15 deletions

View File

@@ -135,10 +135,6 @@ static void openDB(Options * options, char *argv0)
if (db_check() < 0)
exit(EXIT_FAILURE);
db_init();
if (db_save() < 0)
exit(EXIT_FAILURE);
if (options->createDB)
exit(EXIT_SUCCESS);
}
}
@@ -238,8 +234,7 @@ int main(int argc, char *argv[])
tag_lib_init();
log_init(options.verbose, options.stdOutput);
if (options.createDB <= 0)
listenOnPort();
listenOnPort();
changeToUser();