Page 1 of 1
How to use logrotate in ptxdist
Posted: Wed Sep 27, 2017 6:02 am
by ams
Hi,
I have included logrotate package from ptxdist it got installed but.
I am not able to see any file related to logrotate.
SO how to use this functionality in ptxdist ?
Thank You
Re: How to use logrotate in ptxdist
Posted: Wed Sep 27, 2017 7:09 am
by davef
Running logrotate in a cron job doesn't work? From my read of the man page it only works on existing logfiles, ie it doesn't make any new log file.
Re: How to use logrotate in ptxdist
Posted: Wed Sep 27, 2017 1:19 pm
by ams
But, there is no file related to logrotate present in os.
Do I need to create a logrotate files ?
Thank You.
Re: How to use logrotate in ptxdist
Posted: Wed Sep 27, 2017 6:21 pm
by davef
Do you mean that /usr/bin/logrotate is not present? Did you have any error messages during the PTXdist build process?
I assume you are trying to use PTXdist on the mini2440, correct?
Re: How to use logrotate in ptxdist
Posted: Thu Sep 28, 2017 5:18 pm
by ams
Yes, there is no file present related to logrotate.
I am getting following the message in the middle of the process.
No prepare tool found. Do nothing.
finished target logrotate.prepare
Actually, the path for logrotate 3.8.7 is no longer available. So I downloaded it from other locations and placed it in my package download directory
Do you think it is happening due to this ?
Thank you
Re: How to use logrotate in ptxdist
Posted: Thu Sep 28, 2017 6:40 pm
by davef
OK, it looks like you have a downloads directory. As long as you told <ptxdist setup> I think, where that folder is it should be included.
Have you checked in the rules file for logrotate, maybe there is some condition it is not meeting.
Re: How to use logrotate in ptxdist
Posted: Wed Oct 04, 2017 12:55 pm
by ams
As it is in ptxdist packet list.
It is not showing any rule file.
While installing I am getting this message :
No prepare tool found. Do nothing.
finished target logrotate.prepare
Is this an error which is stopping the installation.
Thank You
Re: How to use logrotate in ptxdist
Posted: Wed Oct 04, 2017 6:19 pm
by davef
As it is in ptxdist packet list.
It is not showing any rule file.
What is the ptxdist packet list?
Did you tick a box in ptxdist menuconfig for logrotate, as per your first post, or are you trying to incorporate it in the ptxdist build process? As far as I am aware you need a logrotate.ini and a logrotate.make file in the /rules folder.
All applications that one can select in ptxdist menuconfig have .ini and .make files.
Re: How to use logrotate in ptxdist
Posted: Thu Oct 05, 2017 5:16 am
by ams
Yes, I have ticked the box in menuconfig.
ptxdist packet list means the packet present in menuconfig.
For syslog also I did not have a make or in the file but still, I just ticked the box for syslog in menuconfig and it got installed.
Thanks
Re: How to use logrotate in ptxdist
Posted: Thu Oct 05, 2017 9:50 am
by davef
Well I am a bit puzzled about how things are operating at your end. The guru at Pengutronix actually made a custom .make and .in file so that I could install PHP with thpptd enabled.
Sorry my Pengutronix BSP computer is in another location and I won't be back there for a week or more. I could then try to install logrotate.
Send me a PM in a week if you are still struggling with this.
Re: How to use logrotate in ptxdist
Posted: Thu Oct 05, 2017 10:02 am
by ams
Ok, Dave.
I will try to solve this problem.
If I am not able to solve then I will send you a PM.
Thanks For Your Support.
Re: How to use logrotate in ptxdist
Posted: Mon Oct 09, 2017 4:48 pm
by ams
HI Dave, I got my logrotate working.
Thanks for your guidance.
But, I am stuck in rotating. Means It's not rotating regularly. When I am forcing it to rotate then only it is rotating I have kept the cron file for logrotate in cron folder. I am not confirm that the cron is running or not.There is no cron service file in systemd folder.
In your first reply, you mentioned this: Running logrotate in a cron job doesn't work.
So does it works.
Thank You
Re: How to use logrotate in ptxdist
Posted: Mon Oct 09, 2017 6:55 pm
by davef
Running logrotate in a cron job doesn't work
?
Is a question not a statement.
I have a cron_error.log file in my home directory where I would expect any cron errors to appear. I don't run logrotate so can not help with the details.
Post your cron file, maybe I will see somethng.
Re: How to use logrotate in ptxdist
Posted: Wed Dec 12, 2018 8:03 am
by komayyamok
ams wrote:HI Dave, I got my logrotate working.
Thanks for your guidance.
But, I am stuck in rotating. Means It's not rotating regularly. When I am forcing it to rotate then only it is rotating I have kept the cron file for logrotate in cron folder. I am not confirm that the cron is running or not.There is no cron service file in systemd folder.
In your first reply, you mentioned this: Running logrotate in a cron job doesn't work.
https://www.giannasgrille.com/phenq-review/So does it works.
Thank You
It was the best time to sustain things which are far better in situations to be on top

Re: How to use logrotate in ptxdist
Posted: Fri Dec 14, 2018 11:36 am
by komayyamok
ams wrote:But, there is no file related to logrotate present in os.
Do I need to create a logrotate files ?
https://www.giannasgrille.comThank You.
How long you can be because of those present making and related files to transfer it
