code: func (s *Service) stopTimeout(timeout int) int {
  	DEFAULTTIMEOUT := 10
  	if timeout != 0 {
  		return timeout
  	}
  	configTimeout := utils.DurationStrToSecondsInt(s.Config().StopGracePeriod)
  	if configTimeout != nil {
  		return *configTimeout
  	}
  	return DEFAULTTIMEOUT
  }
docs: //take in timeout flag from cli as parameter
  //return timeout if it is set,
  //else return stop_grace_period if it is set,
  //else return default 10s