Jump to content

Question

Posted

У меня файл лога на 4000 строк, из которых 3031 связаны с cron. Это, конечно, особенность именно моего устройства.

Несмотря на применение "log suppress", строки cron скрыть не удаётся. Вероятно, потому что каждая строка cron приходит с уникальным номером, например "cron[15796]".

Существует ли уже какой-то способ решить эту проблему? Или можно было бы добавить такую возможность?

Ekran görüntüsü 2025-09-08 081217.png

Ekran görüntüsü 2025-09-08 081922.png

2 answers to this question

Recommended Posts

  • 0
Posted
5 минут назад, ru.celebi сказал:

файл лога на 4000 строк, из которых 3031 связаны с cron.

в скрипте запуска /opt/etc/init.d/S10cron

посмотрите, там есть возможность отключить лог. 

Цитата

# remove `-s` to disable logs in syslog
ARGS="-s"

 

  • Thanks 1
  • 0
Posted
8 minutes ago, project_fcc said:

в скрипте запуска /opt/etc/init.d/S10cron

посмотрите, там есть возможность отключить лог. 

 

Спасибо за быстрый и эффективный ответ.

С помощью команды

/opt/etc/init.d/S10cron restart

я сразу получил желаемый результат.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.