logrotate設定 nginxのlogがdeletedされてるのに、プロセスがいつまでも掴んだまま。 結果、サーバー容量死亡のお知らせ。 logrotateの設定ファイル(/etc/logrotate.d/nginx)を変更。 具体的には、postrotateのコマンドをkillコマンドに変更した。 /var/log/nginx/*.log { create 0644 nginx adm daily rotate 7 missingok notifempty compress sharedscripts postrotate /etc/init.d/nginx reopen_logs endscript } /var/log/nginx/*.log { create 0644 nginx adm daily rotate 7 missingok notifempty compress