@Anil-bhaskar did you try the example rc.local @György-Farkas posted above? It may be that rc.local is functioning correctly but that the commands you are executing are not. You can post your rc.local If you are trying to start a daemon you may need to background it using & so it doesn't exit. I personally thing procd is more appropriate in that case.