My MacPro has started opening the DVD tray whenever it restarts, which is annoying. Why is it doing this?
Because it thinks it should be starting from an optical disk, and if it can’t see one it opens the tray for you to insert one.
Go to System Preferences, set a different startup disk (i.e. select a hard drive), and restart.