logrotate sharedscripts って何??? logrotateのローテーションファイルを設定しようとした際に、 "sharedscripts"オプションだけ、説明を読んでもピンとこなかった🥺 [https://atmarkit.itmedia.co.jp/flinux/rensai/linuxtips/747logrotatecmd.html] ChatGptに聞いてみた sharedscripts オプションを使用する場合、それに関連するスクリプト(prerotate と postrotate セクション内のスクリプト)は、ログファイルのローテーション処理の特定のタイミングで実行されます。以下は、sharedscripts の実行タイミングについての詳細です。 ローテーション前 (prerotate スクリプト): prerotate セクション内のスクリプトは、ログ
![logrotate の sharedscripts とは?](https://cdn-ak-scissors.b.st-hatena.com/image/square/672a9b01d24e8e90b3de72846fd733a48a65f591/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--Egx2f65l--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3Alogrotate%252520%2525E3%252581%2525AE%252520sharedscripts%252520%2525E3%252581%2525A8%2525E3%252581%2525AF%2525EF%2525BC%25259F%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3A%2525E5%25258B%252589%2525E5%2525BC%2525B7%2525E3%252583%2525A1%2525E3%252583%2525A2%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EvQUFjSFR0ZnhuaGhDaFQtRVN4SDZuYzg0bFpJdktRZ0ZXeklmMEhieTdhelA2b2wtY1E9czk2LWM%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)