Process check and restart

Hy guys, i was thinking is there some default packages or some settings intro FreeBSD for process check ?

I start my program, after 1 day my program get a crash and stop running. The script or package auto start program if process is down.

Is there any package or some default settings/scripts intro system ?