aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-07-12 13:06:48 -0500
committerToby Vincent <tobyv13@gmail.com>2021-07-12 13:06:48 -0500
commit4f1537252bcd551c15847d3cd6ac2a9a35fbc09a (patch)
tree40ebc43da502f860981e0d050b39a7f19294a9dc
parent219befe5c8fe2fd311bd527b846cee0831bc6ed3 (diff)
feat: added drop-cache cron command for wsl
-rw-r--r--sh/wsl.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sh/wsl.sh b/sh/wsl.sh
index 8460ffa..5c7b983 100644
--- a/sh/wsl.sh
+++ b/sh/wsl.sh
@@ -42,3 +42,6 @@ function winget() {
powershell.exe -NoProfile -c "$cmd"
}
+
+# https://github.com/validatedev/drop-cache-if-idle
+[ -z "$(ps -ef | grep cron | grep -v grep)" ] && sudo /etc/init.d/cron start &> /dev/null \ No newline at end of file