Remove the current open-file limits on uninstall and align the Log2RAM check

- Uninstalling removes DefaultLimitNOFILE=1048576 and ulimit -n 1048576 as well as the legacy 256000 lines
- The customizable post-install runs the Log2RAM check every 10 minutes at low priority, as the automated one does
This commit is contained in:
MacRimi
2026-10-18 14:02:33 +02:00
parent 36a8e84491
commit e5bf63b31f
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -581,7 +581,7 @@ uninstall_system_limits() {
# Remove systemd limits (restore defaults)
for file in /etc/systemd/system.conf /etc/systemd/user.conf; do
if [ -f "$file" ]; then
pmx_edit_file "$file" '/^DefaultLimitNOFILE=256000/d'
pmx_edit_file "$file" -e '/^DefaultLimitNOFILE=256000$/d' -e '/^DefaultLimitNOFILE=1048576$/d'
fi
done
@@ -594,7 +594,7 @@ uninstall_system_limits() {
# Remove ulimit from profile
if [ -f /root/.profile ]; then
pmx_edit_file /root/.profile '/ulimit -n 256000/d'
pmx_edit_file /root/.profile -e '/^ulimit -n 256000$/d' -e '/^ulimit -n 1048576$/d'
fi
# Reload sysctl