7,166
edits
(→RESET) |
(→opkg) |
||
Line 753: | Line 753: | ||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
mkdir -p -m 0755 / | mkdir -p -m 0755 /usr/local/var/lib/logrotate | ||
crontab -e | crontab -e | ||
### logrotal の記述かく | ### logrotal の記述かく | ||
### 25 6 * * * /usr/sbin/logrotate -s / | ### 25 6 * * * /usr/sbin/logrotate -s /usr/local/var/lib/logrotate/status /etc/logrotate.conf > /dev/null 2>&1 | ||
### もしくは crontab ファイル | ### もしくは crontab ファイル | ||
/etc/init.d/cron restart | /etc/init.d/cron restart |