The simplest way to run a command once at startup is to put it in /etc/rc.d/rc.local
, which is a link from /etc/rcX.d/S99local
, and gets run at the very end of the boot sequence.
It's better to write, debug and link a proper service startup script, but if you're pushed for time and just want to whack in a one-line launch command, I find that's the best place to run it from.