タグ

ブックマーク / zenn.dev/rinmaru (1)

  • logrotate の sharedscripts とは?

    logrotate sharedscripts って何??? logrotateのローテーションファイルを設定しようとした際に、 "sharedscripts"オプションだけ、説明を読んでもピンとこなかった🥺 [https://atmarkit.itmedia.co.jp/flinux/rensai/linuxtips/747logrotatecmd.html] ChatGptに聞いてみた sharedscripts オプションを使用する場合、それに関連するスクリプト(prerotate と postrotate セクション内のスクリプト)は、ログファイルのローテーション処理の特定のタイミングで実行されます。以下は、sharedscripts の実行タイミングについての詳細です。 ローテーション前 (prerotate スクリプト): prerotate セクション内のスクリプトは、ログ

    logrotate の sharedscripts とは?
  • 1