move restart server to last line to fixup Permission denied