Check out Amidiminder utility - it does exactly that. For getting your patch on boot, use patchbox, and select your patch from the list. The main entry point has to be placed in /usr/local/puredata-patches/<your_patch_folder>/main.pd so it appears in the list.