Keep log open, rotate it just like the journal:

(logfd, logopen): New.
(loginit): Set logfd, return success.
(logerror): Use logfd.
(logreopen): New.
(relo, main): Use it.
This commit is contained in:
Markus Armbruster 2007-10-27 15:49:45 +00:00
parent 88b44bffd3
commit 9c94a23709
4 changed files with 45 additions and 11 deletions

View file

@ -283,6 +283,7 @@ main(int argc, char **argv)
/* if you make changes here, also update relo() */
journal_reopen();
update_reschedule();
logreopen();
continue;
}
#endif