#norelated
----
*目次 [#q4566e10]
#contents
----
*dhcpdでのログローテートでの注意事項 [#b11ef2f0]
ISC製のdhcpd(多分ほぼ全部のLinuxに入っている?)でのログローテートの際、"kill -HUP"が効かないため、サービスでrestartする必要性がある。
**例 [#u87a040e]
''NG例(/etc/logrotate.d/dhcpd)''
-''NG例(/etc/logrotate.d/dhcpd)''
 postrotate
  /bin/kill -HUP `cat /var/run/dhcpd.pid 2> /dev/null` 2> /dev/null || true
''OK例(/etc/logrotate.d/dhcpd)''
-''OK例(/etc/logrotate.d/dhcpd)''
 postrotate
  /etc/init.d/dhcpd restart 2> /dev/null


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS