How do you avoid error 503 when restarting Linux?

Using Linux Mint 17.2, but this has been happening since I began using Linux with Mint 17. Whenever I restart my laptop, I try accessing subsonic, but get a 503 error--service unavailable. At this point, I stop subsonic, rename db directory, & restart subsonic so a new database is created (as has been suggested on this site & elsewhere). I have done this many times, but try at all costs to leave my laptop charged & running. Is there any way/workaround to avoid having subsonic go into the 503 error when restarting? I have tried stopping subsonic before restarting my laptop, then restarting subsonic after restarting the laptop, but that does not seem to work. 
