dont mandatory limit
This commit is contained in:
parent
b0038e42b4
commit
608be30743
@ -16,12 +16,22 @@ if [ ! -d "$journal_directory" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
systemd_journald_conf="/etc/systemd/journald.conf"
|
systemd_journald_conf="/etc/systemd/journald.conf"
|
||||||
cat <<EOT >> $systemd_journald_conf
|
if (whiptail --title "Systemd Journalling limits" --yes-button "yes" --no-button "no" --yesno "Do You want to join a limit systemd journalling?" 10 80)
|
||||||
|
then
|
||||||
|
|
||||||
|
if [[ $(grep -L "Change Logging maximums" $systemd_journald_conf) ]]; then
|
||||||
|
printf "$COL_YELLOW" "** Limitting"
|
||||||
|
|
||||||
|
cat <<EOT >> $systemd_journald_conf
|
||||||
#Change Logging maximums
|
#Change Logging maximums
|
||||||
RuntimeMaxFileSize=50
|
RuntimeMaxFileSize=50
|
||||||
RuntimeMaxFiles=100
|
RuntimeMaxFiles=100
|
||||||
EOT
|
EOT
|
||||||
|
else
|
||||||
|
printf "$COL_YELLOW" "** not limitting"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
systemctl restart systemd-journald
|
systemctl restart systemd-journald
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user