Fix init.d configuration and service restart