Skip to content

Commit 42ae262

Browse files
committed
add alog rotate for the dhcpcd.debug.log file
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
1 parent ab9f22a commit 42ae262

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

images/01-base/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ COPY inputrc /etc/inputrc
3535
COPY growpart /usr/bin/growpart
3636
COPY start_ntp.sh /bin/start_ntp.sh
3737
COPY dhcpcd.enter-hook /etc/dhcpcd.enter-hook
38+
COPY dhcpcd.debug /usr/share/logrotate/logrotate.d/
3839
RUN sed -i s/"partx --update \"\$part\" \"\$dev\""/"partx --update --nr \"\$part\" \"\$dev\""/g /usr/bin/growpart && \
3940
sed -i -e 's/duid/clientid/g' /etc/dhcpcd.conf && \
4041
sed -i 1,10d /etc/rsyslog.conf && \

images/01-base/dhcpcd.debug

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/var/log/dhcpcd.debug.log
2+
{
3+
rotate 7
4+
daily
5+
missingok
6+
copytruncate
7+
}

0 commit comments

Comments
 (0)