File tree 3 files changed +7
-0
lines changed
files/image_config/logrotate
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 461
461
# # Disable kexec supported reboot which was installed by default
462
462
sudo sed -i ' s/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT /etc/default/kexec
463
463
464
+ # Ensure that 'logrotate-config.service' is set as a dependency to start before 'logrotate.service'.
465
+ sudo mkdir $FILESYSTEM_ROOT /etc/systemd/system/logrotate.service.d
466
+ sudo cp files/image_config/logrotate/logrotateOverride.conf $FILESYSTEM_ROOT /etc/systemd/system/logrotate.service.d/logrotateOverride.conf
467
+
464
468
# # Remove sshd host keys, and will regenerate on first sshd start
465
469
sudo rm -f $FILESYSTEM_ROOT /etc/ssh/ssh_host_* _key*
466
470
sudo cp files/sshd/host-ssh-keygen.sh $FILESYSTEM_ROOT /usr/local/bin/
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ After=updategraph.service
6
6
[Service]
7
7
Type =oneshot
8
8
ExecStart =/usr/bin/logrotate-config.sh
9
+ RemainAfterExit =yes
9
10
10
11
[Install]
11
12
WantedBy =multi-user.target
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Requires=logrotate-config.service
You can’t perform that action at this time.
0 commit comments