Not 100% reliable.
Can you get the computer to boot? If you can and it will run for about five minutes, try running this program in your normal user account, then copy and paste the output in a reply. The program was created by etresoft, a frequent contributor. Please use copy and paste as screen shots can be hard to read. Click “Share Report” button in the toolbar, select “Copy Report” and then paste into a reply. This will show what is running on your computer. No personal information is shown. You can run the report for free at least once, but if you run it several times, at some point it will ask you to pay a license fee.
Etrecheck – System Information
Startup – Computer restarts by itself – Yosemite
Startup Issues - Resolve
Startup Issues - Resolve (2)
Startup Issues - Resolve (3)
If all else fails, do a backup, preferable 2 separate ones on 2 drives if possible. Boot to the Recovery Volume (command - R on a restart). Run Disk Utility and select First Aid. Then re-install the OS.
OS X Recovery
OS X Recovery (2)