fixes #2019 - condrestart error when standalone

Also restarts when configured with Thin.
Fixes #2019 - condrestart error when standalone