Timeline for Logrotate without root user access not working
Current License: CC BY-SA 4.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 14, 2023 at 8:51 | vote | accept | achhainsan | ||
| Nov 20, 2023 at 3:38 | vote | accept | achhainsan | ||
| Nov 20, 2023 at 7:38 | |||||
| Nov 19, 2023 at 18:26 | answer | added | telcoM | timeline score: 0 | |
| Nov 19, 2023 at 14:36 | history | edited | achhainsan | CC BY-SA 4.0 |
added 106 characters in body
|
| Nov 19, 2023 at 14:24 | comment | added | achhainsan | Yes every minute. But it's not working every minute either. | |
| Nov 19, 2023 at 14:16 | comment | added | telcoM |
Unless you have a non-standard cron, a cron job specified as * * * * * is every minute, not every second. (it's "each minute of each hour of each day of each month, and every weekday)
|
|
| Nov 19, 2023 at 14:12 | comment | added | achhainsan | @telcoM did it. | |
| Nov 19, 2023 at 14:12 | history | edited | achhainsan | CC BY-SA 4.0 |
added 460 characters in body
|
| Nov 19, 2023 at 14:10 | comment | added | achhainsan |
The thing is I'm running the cron with * * * * * that is every second, so every second (even without -f it should do the log rotation)
|
|
| Nov 19, 2023 at 13:27 | comment | added | NickD |
Eyeballing the question, there is a difference between the manual command at the end and the command in the crontab: -f is missing in the latter. It may be a typo, it may or may not be the problem, but you should fix it anyway.
|
|
| Nov 19, 2023 at 12:07 | comment | added | telcoM |
Please run head -5 /home/techyman/logrotate/logrotate.status. What is the output? (Please edit your question, don't write it as a comment.)
|
|
| Nov 19, 2023 at 12:02 | history | edited | achhainsan | CC BY-SA 4.0 |
added 204 characters in body
|
| Nov 19, 2023 at 11:52 | history | edited | achhainsan | CC BY-SA 4.0 |
added 69 characters in body
|
| S Nov 19, 2023 at 11:51 | review | First questions | |||
| Nov 20, 2023 at 3:40 | |||||
| S Nov 19, 2023 at 11:51 | history | asked | achhainsan | CC BY-SA 4.0 |