Skip to content

Commit

Permalink
Logrotate for wtmp and btmp files to fix size getting too large. (son…
Browse files Browse the repository at this point in the history
…ic-net#8744)

Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi authored and yxieca committed Oct 15, 2021
1 parent 9ca2674 commit f86b028
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ sudo mkdir -p $FILESYSTEM_ROOT/etc/systemd/system/syslog.socket.d
sudo cp $IMAGE_CONFIGS/syslog/override.conf $FILESYSTEM_ROOT/etc/systemd/system/syslog.socket.d/override.conf
sudo cp $IMAGE_CONFIGS/syslog/host_umount.sh $FILESYSTEM_ROOT/usr/bin/

# Copy logrotate.d configuration files
# Copy logrotate.conf and logrotate.d configuration files
sudo cp -f $IMAGE_CONFIGS/logrotate/logrotate.conf $FILESYSTEM_ROOT/etc/logrotate.conf
sudo cp -f $IMAGE_CONFIGS/logrotate/logrotate.d/* $FILESYSTEM_ROOT/etc/logrotate.d/

# Copy systemd-journald configuration files
Expand Down

0 comments on commit f86b028

Please sign in to comment.