Scheduling stuff to happen at reboots in Linux


Problem: My 1U is throwing correctable memory errors every few seconds, but I can’t do much about it, so I’m ignoring it.

Solution: Disable the log messages about correctable memory errors.

For future reference, the command is

echo 0 > /sys/module/edac_core/parameters/edac_mc_log_ce

Problem: I don’t want to have to do that after every reboot!

Solution:

  1. Use the module config file (located… somewhere) to disable the messages
  2. Use crontab’s @reboot keyword to run a command at every reboot
Guess which solution I chose.
  1. No comments yet.
(will not be published)