mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 11:52:19 +08:00
Update resize_journal.sh
This commit is contained in:
parent
89c37e58dc
commit
43bd0bd404
|
@ -93,10 +93,7 @@ main() {
|
|||
fi
|
||||
|
||||
# Restart the log recording service to force log rotation
|
||||
systemctl restart systemd-journald
|
||||
if [ $? -ne 0 ]; then
|
||||
systemctl restart rsyslog
|
||||
fi
|
||||
sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service
|
||||
|
||||
|
||||
# Loop for 10 seconds, printing journald disk usage every second
|
||||
|
|
Loading…
Reference in New Issue
Block a user