]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Use logrotate to handle files in the default log directory.
authorRobert Ancell <robert.ancell@canonical.com>
Thu, 22 Oct 2015 03:07:32 +0000 (16:07 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Thu, 22 Oct 2015 03:07:32 +0000 (16:07 +1300)
This change introduces support for log rotation using the logrotate tool for
file in the default log directory (/var/log/lightdm). To support this
scenario, existing system log files are not moved to *.old when starting.

1  2 
src/log-file.h
src/seat.c

diff --cc src/log-file.h
index 0000000000000000000000000000000000000000,11d1151baa232f73a604e00ddccc3b94507b0f6e..bfaee29fb0aa639d8715b20f58458e8b2290ff10
mode 000000,100644..100644
--- /dev/null
@@@ -1,0 -1,21 +1,21 @@@
 -#endif /* !LOG_FILE_H */
+ /*
+  * Copyright (C) 2015 Alexandros Frantzis
+  * Author: Alexandros Frantzis <alexandros.frantzis@canonical.com>
+  *
+  * This program is free software: you can redistribute it and/or modify it under
+  * the terms of the GNU General Public License as published by the Free Software
+  * Foundation, either version 3 of the License, or (at your option) any later
+  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
+  * license.
+  */
+ #ifndef LOG_FILE_H_
+ #define LOG_FILE_H_
+ #include <glib.h>
+ #include "log-mode.h"
+ int log_file_open (const gchar *log_filename, LogMode log_mode);
++#endif /* LOG_FILE_H_ */
diff --cc src/seat.c
Simple merge