fixes #2019 - condrestart error when standalone

Also restarts when configured with Thin.