implemented condrestart for the rc script