using service to restart nginx instead of init.d file