fix init script for the case when user asks to start twice