]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/relo.c
Update copyright notice
[empserver] / src / lib / commands / relo.c
index 4a21ba43013cf0cc2335b84e4b3608a786bb85df..6fb78db9335a623b344455e8d1ef4e525cbfacd2 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  relo.c: Re-read (some) configuration files
- * 
+ *
  *  Known contributors to this file:
  *     Markus Armbruster, 2007
  */
@@ -47,12 +47,18 @@ relo(void)
 
     if (journal_reopen() < 0) {
        pr("Can't reopen journal");
-       return RET_SYS;
+       return RET_FAIL;
     }
     pr("Journal reopened.\n");
 
     update_reschedule();
     pr("Reload of update schedule requested.\n");
 
+    if (logreopen() < 0) {
+       pr("Can't reopen log");
+       return RET_FAIL;
+    }
+    pr("Log reopened.\n");
+
     return RET_OK;
 }