Added condition for init.d restart based on platform