Only restart the rails app server if it's an app server.