Only restart if it was already specifically started.  That way, it won't be started earlier than desired.
This fixes the dual start error at boot time, and also is more efficient.