View Single Post
Posts: 182 | Thanked: 40 times | Joined on Apr 2010 @ Seatle, WA
#96
Originally Posted by thingonaspring View Post
Anyone had any luck getting these settings to apply at boot?
I've tried pretty much everything I can think of but can't get /proc/sys/vm/swappiness to report any value other than "100" after a clean boot.
So far I've tried adding a script to /etc/event.d using the "start on startup" event, creating a script in rc2.d and rcS, none of which have any effect.
If I run the same script manually after boot, then all works nicely.
Anyone got any clues what I'm doing wrong?

I have my own scripts which does host of things including this settings.

just copy and paste the rcS-late to whichevever you want. keep it in /etc/event.d

now here is the main thing to remember. Do not repeat do not make any typos in the script as for me some how when I have given dirty__ instead of dirty_ the script stopped going forward hence all settings were not coming through.

I modified this error and rebooted and voila all my settings are taking in to effect.