From 6a618e61da2425ad2ed2f4bf637569d57bb40a3f Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Tue, 19 Jul 2016 02:39:39 +0200 Subject: [PATCH] autoupdater: drop caches a second time after download This is useful to free memory after stopping more services after the download. [Matthias Schiffer: improved commit message] --- .../files/usr/lib/autoupdater/upgrade.d/95drop_caches | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/95drop_caches diff --git a/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/95drop_caches b/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/95drop_caches new file mode 100755 index 0000000..814159f --- /dev/null +++ b/admin/autoupdater/files/usr/lib/autoupdater/upgrade.d/95drop_caches @@ -0,0 +1,4 @@ +#!/bin/sh + +sync +sysctl -w vm.drop_caches=3