Logrotate not working with cron

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I have created my logrotate file inside logrotate.d folder. When I run it manually using logrotate command, it is rotating the logs correctly. But the daily cron seems not to be running. crontab -l is not listing anything related to this. Inside cron.daily,logrotate is present.







share|improve this question
















  • 2




    add you daily crontab to this post
    – user1700494
    Nov 6 '17 at 12:17






  • 1




    Is anything else running correctly out of /etc/cron.daily?
    – warren
    Dec 6 '17 at 21:12










  • I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
    – Kusalananda
    Apr 16 at 9:46














up vote
3
down vote

favorite












I have created my logrotate file inside logrotate.d folder. When I run it manually using logrotate command, it is rotating the logs correctly. But the daily cron seems not to be running. crontab -l is not listing anything related to this. Inside cron.daily,logrotate is present.







share|improve this question
















  • 2




    add you daily crontab to this post
    – user1700494
    Nov 6 '17 at 12:17






  • 1




    Is anything else running correctly out of /etc/cron.daily?
    – warren
    Dec 6 '17 at 21:12










  • I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
    – Kusalananda
    Apr 16 at 9:46












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I have created my logrotate file inside logrotate.d folder. When I run it manually using logrotate command, it is rotating the logs correctly. But the daily cron seems not to be running. crontab -l is not listing anything related to this. Inside cron.daily,logrotate is present.







share|improve this question












I have created my logrotate file inside logrotate.d folder. When I run it manually using logrotate command, it is rotating the logs correctly. But the daily cron seems not to be running. crontab -l is not listing anything related to this. Inside cron.daily,logrotate is present.









share|improve this question











share|improve this question




share|improve this question










asked Nov 6 '17 at 11:47









Renjith

1162




1162







  • 2




    add you daily crontab to this post
    – user1700494
    Nov 6 '17 at 12:17






  • 1




    Is anything else running correctly out of /etc/cron.daily?
    – warren
    Dec 6 '17 at 21:12










  • I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
    – Kusalananda
    Apr 16 at 9:46












  • 2




    add you daily crontab to this post
    – user1700494
    Nov 6 '17 at 12:17






  • 1




    Is anything else running correctly out of /etc/cron.daily?
    – warren
    Dec 6 '17 at 21:12










  • I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
    – Kusalananda
    Apr 16 at 9:46







2




2




add you daily crontab to this post
– user1700494
Nov 6 '17 at 12:17




add you daily crontab to this post
– user1700494
Nov 6 '17 at 12:17




1




1




Is anything else running correctly out of /etc/cron.daily?
– warren
Dec 6 '17 at 21:12




Is anything else running correctly out of /etc/cron.daily?
– warren
Dec 6 '17 at 21:12












I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
– Kusalananda
Apr 16 at 9:46




I'm voting to close this as unclear as the very relevant questions in the other comments have not been answered.
– Kusalananda
Apr 16 at 9:46















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402814%2flogrotate-not-working-with-cron%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402814%2flogrotate-not-working-with-cron%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?