I've also written empeg-preinit to do stuff at startup. You can use it to do totally arbitrary things at startup by just writing shell scripts and adding them to a directory.