[syslog-ng]syslog-ng log file rotation based on size
Peter J. Holzer
hjp@hjp.at
Sun, 2 Feb 2003 13:17:49 +0100
--BuGwuXnZwGGQ9GEc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2003-02-02 06:38:49 -0500, Carson Gaspar wrote:
> --On Sunday, February 02, 2003 12:14 PM +0100 Balazs Scheidler=20
> <bazsi@balabit.hu> wrote:
>=20
> >rotate_if_older would be problematic as syslog-ng has no information when
> >it started to write to a given file.
>=20
> stat() will happily tell you the file creation time.
Not on Unix. st_ctime is the time of last change, not the creation time.
hp
--=20
_ | Peter J. Holzer | To a database person,
|_|_) | Sysadmin WSR | every nail looks like a thumb.
| | | hjp@hjp.at |
__/ | http://www.hjp.at/ | -- Jamie Zawinski
--BuGwuXnZwGGQ9GEc
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+PQxtfZ+RkG8quy0RAhJjAJ4uysJH3RGxBiljISQquf6id1EjyACfWMo7
Qe9TeA/BhIJGuflV7B8HwbI=
=O/11
-----END PGP SIGNATURE-----
--BuGwuXnZwGGQ9GEc--