-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bernd Naumann <[email protected]> schrieb:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 06/08/2015 09:41 PM, Luca Bertoncello wrote: > > Hi list! > > > > I use OpenWRT Barrier Breaker and I need to rotate logs, so I > > installed logrotate. Now I see, that no cronjob for logrotate > > exists and I seek for crontab, but it is NOT installed and I don't > > find the package... > > > > How can I start logrotate in cron? > > > > `crontab` and `crond` is part of busybox[1], and can be controlled via > `/etc/init.d/cron`. So just put your jobs at '/etc/crontabs/root' and > `/etc/init.d/cron restart' OK, thanks! I created a /etc/crontabs/root so: 10 0 * * * /usr/sbin/logrotate /etc/logrotate.conf Now I hope, it works... :) Thanks Luca Bertoncello ([email protected]) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlV19HwACgkQ8Ggznj+1EDhqCgCgvXk/MUgWXoiNw2yGpZ7rkkoa 4acAoJQSnsCzGaCxH2WqZbsnc6mNUhIU =xVra -----END PGP SIGNATURE----- _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
