Restarting Dashboard Programmatically

We occasionally see a dashboard crash under load. Thus far, it’s been challenging to reproduce, so we’re looking to add monitoring/resilience to the dashboard as we test out the job library.

Is there a way to programmatically restart the dashboard (either via shell/Python) or set it to auto restart?