This question already has an answer here:
I've already looked at "How to have Linux wipe/randomize/sanitize RAM at shutdown?", but that's not what I'm looking for exactly.
I'd like to have it so when I shut down my machine, it executes the "sdmem" program, securely wiping my RAM. I've looked around at some other tutorials online related to this topic, yet none of them are really definitive of what needs to be done for this to execute successfully.
The program needs to be run as root, and I'm running Debian jessie if that really matters.